1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed mobile layout on boris stats

This commit is contained in:
Fedor Katurov 2022-04-01 17:46:00 +07:00
parent 981cbe81d9
commit 592284f438
5 changed files with 24 additions and 7 deletions

View file

@ -5,8 +5,9 @@
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-column-gap: $gap; grid-column-gap: $gap;
grid-row-gap: $gap; grid-row-gap: $gap;
} grid-auto-rows: 140px;
.card { @include tablet {
height: 150px; grid-auto-rows: 120px;
}
} }

View file

@ -10,6 +10,8 @@
z-index: 1; z-index: 1;
position: relative; position: relative;
flex: 1; flex: 1;
display: flex;
flex-direction: column;
} }
.background { .background {
@ -20,3 +22,7 @@
position: absolute; position: absolute;
z-index: 0; z-index: 0;
} }
.title {
flex: 0;
}

View file

@ -3,13 +3,11 @@
.content { .content {
width: 100%; width: 100%;
flex: 1; flex: 1;
height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font: $font_18_semibold; font: $font_18_semibold;
color: transparentize(white, 0.5); color: transparentize(white, 0.5);
padding-bottom: 10px;
} }
span.val { span.val {
@ -17,3 +15,7 @@ span.val {
color: white; color: white;
padding: 0 $gap * 0.5 0 $gap * 2; padding: 0 $gap * 0.5 0 $gap * 2;
} }
.card {
height: 100%;
}

View file

@ -16,7 +16,12 @@ interface StatsGraphCardProps extends CardProps {
} }
const StatsGraphCard: VFC<StatsGraphCardProps> = ({ total, title, data, left, right }) => ( const StatsGraphCard: VFC<StatsGraphCardProps> = ({ total, title, data, left, right }) => (
<StatsCard title={title} total={total} background={<BasicCurveChart items={data} />}> <StatsCard
title={title}
total={total}
background={<BasicCurveChart items={data} />}
className={styles.card}
>
<div className={styles.content}> <div className={styles.content}>
<span>{left}</span> <span>{left}</span>
<Filler /> <Filler />

View file

@ -5,7 +5,10 @@
height: 100%; height: 100%;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
padding-bottom: $gap;
font: $font_12_medium; font: $font_12_medium;
opacity: 0.2; opacity: 0.2;
} }
.card {
height: 100%;
}