Skip to content

Commit 07d24ec

Browse files
author
tonyliuzj
committed
Fixes ram and disk text overflowing
1 parent 84412c3 commit 07d24ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/AdaptiveChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default function AdaptiveChart({ value, label, subLabel, color, compact =
108108
<div className="text-center">
109109
<div className="text-xs font-semibold text-foreground/90">{label}</div>
110110
{subLabel && (
111-
<div className="text-[10px] text-muted-foreground/60">{subLabel}</div>
111+
<div className="text-[10px] text-muted-foreground/60 whitespace-nowrap">{subLabel}</div>
112112
)}
113113
</div>
114114
<div className="w-full max-w-[80px] space-y-1">

src/components/CircleChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default function CircleChart({
149149
<div className="text-center mt-2">
150150
<div className="text-xs font-semibold text-foreground/90">{label}</div>
151151
{subLabel && (
152-
<div className="text-[10px] text-muted-foreground/60 mt-0.5">{subLabel}</div>
152+
<div className="text-[10px] text-muted-foreground/60 mt-0.5 whitespace-nowrap">{subLabel}</div>
153153
)}
154154
</div>
155155
</div>

0 commit comments

Comments
 (0)