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:
parent
981cbe81d9
commit
592284f438
5 changed files with 24 additions and 7 deletions
|
@ -5,8 +5,9 @@
|
|||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
grid-column-gap: $gap;
|
||||
grid-row-gap: $gap;
|
||||
}
|
||||
grid-auto-rows: 140px;
|
||||
|
||||
.card {
|
||||
height: 150px;
|
||||
@include tablet {
|
||||
grid-auto-rows: 120px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
z-index: 1;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.background {
|
||||
|
@ -20,3 +22,7 @@
|
|||
position: absolute;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
flex: 0;
|
||||
}
|
||||
|
|
|
@ -3,13 +3,11 @@
|
|||
.content {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font: $font_18_semibold;
|
||||
color: transparentize(white, 0.5);
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
span.val {
|
||||
|
@ -17,3 +15,7 @@ span.val {
|
|||
color: white;
|
||||
padding: 0 $gap * 0.5 0 $gap * 2;
|
||||
}
|
||||
|
||||
.card {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,12 @@ interface StatsGraphCardProps extends CardProps {
|
|||
}
|
||||
|
||||
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}>
|
||||
<span>{left}</span>
|
||||
<Filler />
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
height: 100%;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
padding-bottom: $gap;
|
||||
font: $font_12_medium;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.card {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue