From e2ec5fccee1946952a6a7e742ee5e21048a6ba0c Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sat, 7 Nov 2026 16:23:25 -0500 Subject: [PATCH] feat(ui): full-width KPI labels on phone On phones the KPI tile icon now sits inline with the value, so labels like 'Protected resources' and 'Memory usage' get the full tile width instead of being cut off, and the sub line stays on one line. Tablet and desktop are unchanged. Also routes the Backups 'across N destinations' text through i18n. --- .../components/backups/BackupsOverview.jsx | 2 +- frontend/src/i18n/locales/en.json | 2 ++ .../src/styles/components/_design-system.scss | 30 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/backups/BackupsOverview.jsx b/frontend/src/components/backups/BackupsOverview.jsx index e169ae5a..92a36172 100644 --- a/frontend/src/components/backups/BackupsOverview.jsx +++ b/frontend/src/components/backups/BackupsOverview.jsx @@ -272,7 +272,7 @@ export default function BackupsOverview({ label={t('app.backupsOverview.storageUsed', 'Storage used')} >
- across {destinations.count} destination{destinations.count === 1 ? '' : 's'} + {t('app.backupsOverview.acrossDestinations', { count: destinations.count, defaultValue_one: 'across 1 destination', defaultValue_other: 'across {{count}} destinations' })}
:not(.sk-kpi__val), &__spark { grid-area: auto; grid-column: 1 / -1; min-width: 0; } + &__label { + white-space: normal; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + line-clamp: 2; + } + &__sub { + flex-wrap: nowrap; + white-space: nowrap; + overflow: hidden; + > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; } + } + } } // ------------------------------------------------------------