Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Make service detail chips scroll on mobile

Juan Denisd88f1cbf55a0
diff --git a/frontend/src/styles/pages/_service-detail.scss b/frontend/src/styles/pages/_service-detail.scss
index deb76c61..41884ee0 100644
--- a/frontend/src/styles/pages/_service-detail.scss
+++ b/frontend/src/styles/pages/_service-detail.scss
@@ -546,10 +546,20 @@ h3.svc-eyebrow {
position: sticky;
top: $space-4;
+ // Phones: one horizontally scrollable chip row. Groups are flattened
+ // (display: contents) so every item is a direct flex child; the group
+ // labels are hidden and the +$space-4 stagger margin disappears with
+ // the group boxes. The old wrap layout squeezed four group columns
+ // side by side, staggered them 16px apart and clipped the pills.
@media (max-width: $breakpoint-md) {
position: static;
flex-direction: row;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
+ gap: 6px;
+ overflow-x: auto;
+ padding-bottom: 2px; // keep the active pill's ring/shadow unclipped
+ scrollbar-width: none;
+ &::-webkit-scrollbar { display: none; }
}
}
@@ -558,6 +568,11 @@ h3.svc-eyebrow {
margin-top: $space-4;
}
+ @media (max-width: $breakpoint-md) {
+ &__group { display: contents; }
+ &__grouplabel { display: none; }
+ }
+
&__grouplabel {
padding: 0 12px;
margin-bottom: 6px;
@@ -593,6 +608,13 @@ h3.svc-eyebrow {
@include status-variant(var(--accent-bright), var(--accent-bg));
svg { color: var(--accent-bright); }
}
+
+ // Chip row on phones: shrink to the label, never wrap or stretch.
+ @media (max-width: $breakpoint-md) {
+ width: auto;
+ flex: 0 0 auto;
+ white-space: nowrap;
+ }
}
&__content {