Dashboard: slupki i kropki jako osobny pelnoszerokoscowy div na samym dole karty
This commit is contained in:
@@ -57,9 +57,9 @@ function WeekBars({ values }: { values: number[] }) {
|
||||
<div aria-hidden="true" className="flex h-14 items-end">
|
||||
<svg
|
||||
data-testid="week-bars"
|
||||
width={w}
|
||||
height={h}
|
||||
className="h-[26px] w-full"
|
||||
viewBox={`0 0 ${w} ${h}`}
|
||||
preserveAspectRatio="none"
|
||||
fill="none"
|
||||
>
|
||||
{values.map((v, i) => {
|
||||
@@ -162,12 +162,8 @@ function StatCard({
|
||||
<div className="flex items-center gap-1.5 font-display text-[1.9rem] font-bold leading-tight tracking-[-0.02em] tabular-nums">
|
||||
{value}
|
||||
</div>
|
||||
{(sub != null || trailing != null) && (
|
||||
<div className="mt-auto flex w-full min-w-0 items-end justify-between gap-x-6 pt-1.5">
|
||||
<div className="min-w-0 text-dim text-[0.8125rem]">{sub}</div>
|
||||
{trailing != null && <div className="flex-none">{trailing}</div>}
|
||||
</div>
|
||||
)}
|
||||
{sub != null && <div className="text-dim text-[0.8125rem]">{sub}</div>}
|
||||
{trailing != null && <div className="mt-auto w-full pt-1.5">{trailing}</div>}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user