mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36: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 { Placeholder } from '~/components/placeholders/Placeholder';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
import styles from './styles.module.scss';
|
||||
import { Grid } from '~/components/containers/Grid';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const LabHead: FC<IProps> = () => (
|
||||
<Card>
|
||||
<Group horizontal>
|
||||
<Card className={styles.wrap}>
|
||||
<div className={styles.group}>
|
||||
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||
<Placeholder width="32px" height={32} />
|
||||
<Placeholder width="96px" height={18} />
|
||||
|
@ -25,7 +27,7 @@ const LabHead: FC<IProps> = () => (
|
|||
</Group>
|
||||
|
||||
<Filler />
|
||||
</Group>
|
||||
</div>
|
||||
</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;
|
||||
grid-template-columns: 3fr 1fr;
|
||||
column-gap: $gap;
|
||||
|
||||
@include tablet {
|
||||
grid-template-columns: 1fr;
|
||||
grid-auto-flow: row;
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue