diff --git a/.Jules/palette.md b/.Jules/palette.md index 8a5a46f6c..018ade46b 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -8,3 +8,6 @@ ## 2024-10-24 - CSS Bar Chart Animation **Learning:** CSS animations can enhance static data visualizations without requiring JavaScript, providing visual polish and reducing perceived loading times for data. **Action:** Use CSS keyframe animations for simple visual improvements in static reports. +## 2026-07-25 - Tabular Numbers for Data Reports +**Learning:** Proportional numbers in vertical columns or data-heavy reports can look jagged and are harder to read and compare. Using tabular numbers ensures all digits have the same width. +**Action:** Always include `font-variant-numeric: tabular-nums;` in body styles or data-heavy components within HTML reports to ensure numbers align properly vertically for improved readability and scanning. diff --git a/python/fast_mlsirm/report.py b/python/fast_mlsirm/report.py index 30ee4276b..b34ae5839 100644 --- a/python/fast_mlsirm/report.py +++ b/python/fast_mlsirm/report.py @@ -467,6 +467,7 @@ def _css() -> str: color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; + font-variant-numeric: tabular-nums; } .skip-link {