mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(dashboard): clip the tile card bound on a pathological value
The headline value span is shrink-0 whitespace-nowrap so it never truncates a digit — correct. A worst-case very wide value could still push the card's content past its grid column and break the layout. Add overflow-hidden to the tile card wrapper so a pathological value clips at the card bound rather than the grid, without re-introducing truncation of the number for realistic readings.
This commit is contained in:
1 parent
aeb72d1a08
commit
ecf4f06870
1 file changed
+1
-1
@@ -238,7 +238,7 @@ export function TrendCard({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="bg-card border-border flex h-full w-full min-w-0 flex-col rounded-xl border p-4 md:p-6">
|
||||
<div className="bg-card border-border flex h-full w-full min-w-0 flex-col overflow-hidden rounded-xl border p-4 md:p-6">
|
||||
{/* v1.4.25 W20a — single-line discipline + deterministic height for
|
||||
the heading row so the value row below sits at the same baseline
|
||||
across every tile. The label is locale-abbreviated upstream (see
|
||||
|
||||
Reference in new issue
Block a user