mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
fix(ui): stop clipping labels and values on narrow screens
KPI values keep their full width on phones, KPI sub lines and catalog card titles/subs wrap instead of ellipsizing (the featured star keeps its gap), the file toolbar selects size to their content so the whole toolbar stays on one row, RequiresDocker fits 360px, theme import actions wrap, and the German file sort labels read Name A–Z / Z–A.
This commit is contained in:
1 parent
71b9b8e210
commit
37fe7f9758
5 files changed
+21
-21
No files matched your search
@@ -2700,8 +2700,8 @@
|
||||
"loadingFiles": "Laden von Dateien",
|
||||
"localPanelHost": "Lokaler Panel-Host",
|
||||
"modified": "Geändert",
|
||||
"nameAZ": "Nennen Sie A-Z",
|
||||
"nameZA": "Nennen Sie Z-A",
|
||||
"nameAZ": "Name A–Z",
|
||||
"nameZA": "Name Z–A",
|
||||
"newFolder": "Neuer Ordner",
|
||||
"newName": "Neuer Name",
|
||||
"newest": "Neueste",
|
||||
|
||||
@@ -249,8 +249,10 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
|
||||
&__body { display: contents; }
|
||||
&__icon, &__val, &__trend { grid-area: auto; grid-row: 1; }
|
||||
&__icon { grid-column: 1; }
|
||||
&__val { grid-column: 2; }
|
||||
&__trend { grid-column: 3; }
|
||||
// Value sizes to its content (never ellipsized); the trend takes what is left.
|
||||
grid-template-columns: auto auto minmax(0, 1fr);
|
||||
&__val { grid-column: 2; overflow: visible; text-overflow: clip; }
|
||||
&__trend { grid-column: 3; justify-self: end; }
|
||||
&__body > :not(.sk-kpi__val), &__spark { grid-area: auto; grid-column: 1 / -1; min-width: 0; }
|
||||
&__label {
|
||||
white-space: normal;
|
||||
@@ -259,12 +261,7 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
}
|
||||
&__sub {
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
> * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
}
|
||||
&__sub { > * { min-width: 0; overflow-wrap: anywhere; } }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1878,7 +1875,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
|
||||
&__title {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
font-weight: $font-weight-semibold; font-size: $text-sm; color: var(--text);
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
overflow: hidden; overflow-wrap: anywhere;
|
||||
display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
|
||||
}
|
||||
&__open {
|
||||
max-width: 100%;
|
||||
@@ -1891,10 +1889,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
|
||||
|
||||
&:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
}
|
||||
&__featured { flex-shrink: 0; color: var(--text-faint); fill: currentColor; }
|
||||
&__sub {
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
&__featured { flex-shrink: 0; color: var(--text-faint); fill: currentColor; margin-inline-start: 6px; vertical-align: -1px; }
|
||||
&__sub { overflow-wrap: anywhere; }
|
||||
&__tag { flex-shrink: 0; font-size: $text-xs; color: var(--text-faint); white-space: nowrap; }
|
||||
&__desc {
|
||||
margin: 0;
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
margin: 0 auto;
|
||||
padding: $space-8 $space-5;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
|
||||
&__icon {
|
||||
color: $text-tertiary;
|
||||
|
||||
@@ -394,8 +394,9 @@ $ft-default: #646b7a;
|
||||
}
|
||||
|
||||
> span {
|
||||
width: 78px;
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
min-width: 78px;
|
||||
white-space: nowrap;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
@@ -1852,7 +1853,7 @@ $drawer-width: 520px;
|
||||
.toolbar-left,
|
||||
.toolbar-right { width: 100%; justify-content: flex-start; }
|
||||
|
||||
.toolbar-right { flex-wrap: wrap; }
|
||||
.toolbar-right { flex-wrap: wrap; gap: $space-1; }
|
||||
|
||||
.search-field {
|
||||
order: -1;
|
||||
@@ -1862,9 +1863,10 @@ $drawer-width: 520px;
|
||||
}
|
||||
|
||||
.file-toolbar-select {
|
||||
flex: 1;
|
||||
flex: 0 1 auto;
|
||||
|
||||
> span { width: 100%; }
|
||||
> span { min-width: 0; }
|
||||
> svg:not(.ui-select-icon) { display: none; }
|
||||
}
|
||||
|
||||
.file-mount-chip { display: none; }
|
||||
|
||||
@@ -1430,7 +1430,7 @@
|
||||
|
||||
.theme-gallery-actions {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
gap: $space-2;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user