Skip to content

Fix/tile units default hidden - #233

Merged
novykh merged 2 commits into
mainfrom
fix/tile-units-default-hidden
Aug 14, 2026
Merged

Fix/tile units default hidden#233
novykh merged 2 commits into
mainfrom
fix/tile-units-default-hidden

Conversation

@novykh

@novykh novykh commented Aug 14, 2026

Copy link
Copy Markdown
Member

No description provided.

novykh added 2 commits August 14, 2026 11:53
Tiles are narrow by construction, so the "• [unit]" badge competed with the
title for the same row and truncated it away, often leaving the badge alone in
the header. Gauges, easy pies, numbers, bars, tables and pies all share that
header through withTile.

hideUnits now starts unset rather than false, and the tile header reads it as
`?? true`. Tiles therefore hide the unit unless a chart asks for it, while the
full chart header keeps showing it, since an unset value is still falsy there.
Setting hideUnits explicitly continues to win in both headers.

Tests: the tile header hides the unit by default, shows it when hideUnits is
explicitly false, and hides it when explicitly true.
@novykh
novykh requested a review from ktsaou August 14, 2026 08:56
@novykh
novykh merged commit d1e219d into main Aug 14, 2026
2 checks passed
@novykh
novykh deleted the fix/tile-units-default-hidden branch August 14, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants