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.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
refactor(ds): fold Drawer/PageTopbar/AppMap static styles into SCSS
Juan Denisa16561a0fbc2
diff --git a/frontend/src/components/ds/Drawer.jsx b/frontend/src/components/ds/Drawer.jsxindex d4130a6d..5679c8b2 100644--- a/frontend/src/components/ds/Drawer.jsx+++ b/frontend/src/components/ds/Drawer.jsx@@ -47,7 +47,7 @@ export function Drawer({{icon}</span>)}- <div style={{ flex: 1, minWidth: 0 }}>+ <div>{/* SheetTitle is required by Radix for a11y; keep it as the visible title. */}<SheetTitle className="sk-drawer__title">{title}</SheetTitle>{subtitle && <div className="sk-drawer__sub">{subtitle}</div>}diff --git a/frontend/src/components/ds/PageTopbar.jsx b/frontend/src/components/ds/PageTopbar.jsxindex 9fd19409..ed68bd52 100644--- a/frontend/src/components/ds/PageTopbar.jsx+++ b/frontend/src/components/ds/PageTopbar.jsx@@ -96,8 +96,7 @@ function TopbarTabs({ tabs, label }) {to={tab.to}end={tab.end}ref={(el) => { itemRefs.current[i] = el; }}- className={({ isActive }) => cn('sk-topbar__tab', isActive && 'is-active')}- style={{ display: isHidden ? 'none' : undefined }}+ className={({ isActive }) => cn('sk-topbar__tab', isActive && 'is-active', isHidden && 'is-hidden')}data-overflow={isHidden ? 'hidden' : undefined}>{tab.icon}diff --git a/frontend/src/pages/AppMap.jsx b/frontend/src/pages/AppMap.jsxindex 1d1e0c6e..a2708cd8 100644--- a/frontend/src/pages/AppMap.jsx+++ b/frontend/src/pages/AppMap.jsx@@ -67,8 +67,8 @@ const mk = (id, label, x, y, kind, sub) => ({position: { x, y },data: { label: sub ? (<div>- <div style={{ fontWeight: 600 }}>{label}</div>- <div style={{ fontSize: 10.5, opacity: 0.7, marginTop: 2 }}>{sub}</div>+ <div className="app-map__node-name">{label}</div>+ <div className="app-map__node-sub">{sub}</div></div>) : label },style: { ...nodeBase, ...STYLES[kind] },@@ -273,7 +273,7 @@ function Diagram({ viewId }) {maxZoom={1.5}><Background gap={18} size={1} color="var(--border-subtle)" />- <MiniMap pannable zoomable style={{ background: 'var(--bg-elevated)' }} />+ <MiniMap pannable zoomable /><Controls showInteractive={false} /></ReactFlow>);diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scssindex d7b76e3a..e23cecc1 100644--- a/frontend/src/styles/components/_design-system.scss+++ b/frontend/src/styles/components/_design-system.scss@@ -1250,6 +1250,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');svg { width: 15px; height: 15px; }&:hover { background: var(--surface-hover); color: var(--text); }&.is-active { @include status-variant(var(--accent-bright), var(--accent-bg)); }+ // Overflowed tab — moved into the "More" popover, not rendered inline.+ &.is-hidden { display: none; }}// Overflow ("More") trigger — a tab-styled button that never collapses.&__more {@@ -1311,6 +1313,10 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');&__head {display: flex; align-items: center; gap: 12px;padding: 15px 18px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;++ // Title+subtitle column; min-width 0 lets long titles ellipsis+ // instead of pushing the header extra off the panel.+ > div:first-child { flex: 1; min-width: 0; }}&__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-dim); }&__title { font-weight: 600; font-size: 14.5px; }diff --git a/frontend/src/styles/pages/_app-map.scss b/frontend/src/styles/pages/_app-map.scssindex 4db3f235..49c07068 100644--- a/frontend/src/styles/pages/_app-map.scss+++ b/frontend/src/styles/pages/_app-map.scss@@ -75,6 +75,21 @@.react-flow__attribution {display: none;}++ .react-flow__minimap {+ background: var(--bg-elevated);+ }+ }++ // Node label + subtitle rendered inside ReactFlow's default node body.+ .react-flow__node .app-map__node-name {+ font-weight: $font-weight-semibold;+ }++ .react-flow__node .app-map__node-sub {+ margin-top: 2px;+ font-size: 10.5px;+ opacity: 0.7;}}