redesign
This commit is contained in:
@@ -8,8 +8,8 @@ interface Props {
|
||||
|
||||
export function MetricCard({ label, value, subtext }: Props) {
|
||||
return (
|
||||
<Card variant="outlined">
|
||||
<CardContent>
|
||||
<Card variant="outlined" sx={{ height: "100%" }}>
|
||||
<CardContent sx={{ p: { xs: 1.5, sm: 2 } }}>
|
||||
<Typography
|
||||
variant="caption"
|
||||
color="text.secondary"
|
||||
@@ -17,14 +17,22 @@ export function MetricCard({ label, value, subtext }: Props) {
|
||||
>
|
||||
{label}
|
||||
</Typography>
|
||||
<Typography variant="h5" sx={{ mt: 0.5, fontWeight: 700 }}>
|
||||
<Typography
|
||||
variant="h5"
|
||||
sx={{
|
||||
mt: 0.5,
|
||||
fontWeight: 700,
|
||||
fontSize: { xs: "1.05rem", sm: "1.5rem" },
|
||||
lineHeight: 1.15,
|
||||
}}
|
||||
>
|
||||
{value}
|
||||
</Typography>
|
||||
{subtext && (
|
||||
<Typography
|
||||
variant="caption"
|
||||
color="text.secondary"
|
||||
sx={{ whiteSpace: "pre-line" }}
|
||||
sx={{ whiteSpace: "pre-line", display: "block", mt: 0.25 }}
|
||||
>
|
||||
{subtext}
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user