mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
#23 fixed lab layout on tablets
This commit is contained in:
parent
031de64acc
commit
80967ddfac
3 changed files with 23 additions and 3 deletions
|
@ -3,12 +3,14 @@ import { Group } from '~/components/containers/Group';
|
||||||
import { Card } from '~/components/containers/Card';
|
import { Card } from '~/components/containers/Card';
|
||||||
import { Placeholder } from '~/components/placeholders/Placeholder';
|
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||||
import { Filler } from '~/components/containers/Filler';
|
import { Filler } from '~/components/containers/Filler';
|
||||||
|
import styles from './styles.module.scss';
|
||||||
|
import { Grid } from '~/components/containers/Grid';
|
||||||
|
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
const LabHead: FC<IProps> = () => (
|
const LabHead: FC<IProps> = () => (
|
||||||
<Card>
|
<Card className={styles.wrap}>
|
||||||
<Group horizontal>
|
<div className={styles.group}>
|
||||||
<Group horizontal style={{ flex: '0 0 auto' }}>
|
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||||
<Placeholder width="32px" height={32} />
|
<Placeholder width="32px" height={32} />
|
||||||
<Placeholder width="96px" height={18} />
|
<Placeholder width="96px" height={18} />
|
||||||
|
@ -25,7 +27,7 @@ const LabHead: FC<IProps> = () => (
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Filler />
|
<Filler />
|
||||||
</Group>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
13
src/components/lab/LabHead/styles.module.scss
Normal file
13
src/components/lab/LabHead/styles.module.scss
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
@import "~/styles/variables.scss";
|
||||||
|
|
||||||
|
.group {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
@include tablet {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > * {
|
||||||
|
margin: $gap / 2;
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,6 +4,11 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 3fr 1fr;
|
grid-template-columns: 3fr 1fr;
|
||||||
column-gap: $gap;
|
column-gap: $gap;
|
||||||
|
|
||||||
|
@include tablet {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-auto-flow: row;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue