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
fix(dashboard): the widgets were speaking a dialect the stylesheet did not
Juan Denisac4d8761b24a
diff --git a/backend/app/services/dashboard_service.py b/backend/app/services/dashboard_service.pyindex 90dd2cfe..ac2a1e7a 100644--- a/backend/app/services/dashboard_service.py+++ b/backend/app/services/dashboard_service.py@@ -57,30 +57,31 @@ DEFAULT_BOARDS = ['widgets': [# Row 0-1: four stats across the top.{'i': 'w1', 'type': 'stat', 'x': 0, 'y': 0, 'w': 3, 'h': 2,- 'cfg': {'metric': 'cpu', 'agg': 'last', 'resource': '$server',+ 'cfg': {'title': 'CPU usage', 'metric': 'cpu', 'agg': 'last', 'resource': '$server','thresholds': [70, 90]}},{'i': 'w2', 'type': 'stat', 'x': 3, 'y': 0, 'w': 3, 'h': 2,- 'cfg': {'metric': 'ram', 'agg': 'last', 'resource': '$server',+ 'cfg': {'title': 'Memory', 'metric': 'ram', 'agg': 'last', 'resource': '$server','thresholds': [80, 92]}},{'i': 'w3', 'type': 'stat', 'x': 6, 'y': 0, 'w': 3, 'h': 2,- 'cfg': {'metric': 'disk', 'agg': 'last', 'resource': '$server',+ 'cfg': {'title': 'Disk', 'metric': 'disk', 'agg': 'last', 'resource': '$server','thresholds': [75, 90]}},{'i': 'w4', 'type': 'stat', 'x': 9, 'y': 0, 'w': 3, 'h': 2,- 'cfg': {'metric': 'load', 'agg': 'last', 'resource': '$server',+ 'cfg': {'title': 'Load average', 'metric': 'load', 'agg': 'last', 'resource': '$server','thresholds': None}},# Rows 2-5: the wide chart, with quick actions + host details stacked# in the right-hand column.{'i': 'w5', 'type': 'timeseries', 'x': 0, 'y': 2, 'w': 8, 'h': 4,- 'cfg': {'metrics': ['cpu', 'ram'], 'resource': '$server'}},+ 'cfg': {'title': 'Real-time performance', 'series': [{'resource': '$server', 'metric': 'cpu'}, {'resource': '$server', 'metric': 'ram'}],+ 'legend': True, 'fill': True}},{'i': 'w6', 'type': 'actions', 'x': 8, 'y': 2, 'w': 4, 'h': 2,- 'cfg': {'actions': ['new-app', 'deploy', 'terminal', 'backup']}},+ 'cfg': {'title': 'Quick actions', 'items': ['services', 'docker', 'terminal', 'backups']}},{'i': 'w7', 'type': 'specs', 'x': 8, 'y': 4, 'w': 4, 'h': 2,- 'cfg': {'resource': '$server'}},+ 'cfg': {'title': 'Hardware specs', 'resource': '$server'}},# Rows 6-9: inventory + what happened.{'i': 'w8', 'type': 'table', 'x': 0, 'y': 6, 'w': 8, 'h': 4,- 'cfg': {'source': 'apps', 'limit': 8}},+ 'cfg': {'title': 'Applications', 'source': 'apps', 'limit': 8}},{'i': 'w9', 'type': 'feed', 'x': 8, 'y': 6, 'w': 4, 'h': 4,- 'cfg': {'limit': 10}},+ 'cfg': {'title': 'Recent activity', 'limit': 10}},],},{@@ -91,23 +92,24 @@ DEFAULT_BOARDS = ['widgets': [# Rows 0-3: fleet-wide chart + the ranked hot list.{'i': 'w1', 'type': 'timeseries', 'x': 0, 'y': 0, 'w': 8, 'h': 4,- 'cfg': {'metrics': ['cpu', 'ram', 'disk'], 'resource': '$server'}},+ 'cfg': {'title': 'Fleet performance', 'series': [{'resource': '$server', 'metric': 'cpu'}, {'resource': '$server', 'metric': 'ram'}, {'resource': '$server', 'metric': 'disk'}],+ 'legend': True, 'fill': True}},{'i': 'w2', 'type': 'topn', 'x': 8, 'y': 0, 'w': 4, 'h': 4,- 'cfg': {'metric': 'cpu', 'source': 'servers', 'limit': 5}},+ 'cfg': {'title': 'Busiest servers', 'metric': 'cpu', 'limit': 5}},# Rows 4-6: two dials and the up/down matrix.{'i': 'w3', 'type': 'gauge', 'x': 0, 'y': 4, 'w': 3, 'h': 3,- 'cfg': {'metric': 'cpu', 'resource': '$server',+ 'cfg': {'title': 'CPU', 'metric': 'cpu', 'resource': '$server','thresholds': [70, 90]}},{'i': 'w4', 'type': 'gauge', 'x': 3, 'y': 4, 'w': 3, 'h': 3,- 'cfg': {'metric': 'ram', 'resource': '$server',+ 'cfg': {'title': 'Memory', 'metric': 'ram', 'resource': '$server','thresholds': [80, 92]}},{'i': 'w5', 'type': 'status', 'x': 6, 'y': 4, 'w': 6, 'h': 3,- 'cfg': {'limit': 12}},+ 'cfg': {'title': 'Endpoint status', 'source': 'servers', 'limit': 12}},# Rows 7-10: containers + anything currently shouting.{'i': 'w6', 'type': 'table', 'x': 0, 'y': 7, 'w': 8, 'h': 4,- 'cfg': {'source': 'containers', 'limit': 8}},+ 'cfg': {'title': 'Containers', 'source': 'containers', 'limit': 8}},{'i': 'w7', 'type': 'alerts', 'x': 8, 'y': 7, 'w': 4, 'h': 4,- 'cfg': {'limit': 8, 'severity': 'all'}},+ 'cfg': {'title': 'Open alerts', 'limit': 8, 'severity': 'all'}},],},{@@ -118,22 +120,24 @@ DEFAULT_BOARDS = ['widgets': [# Rows 0-1: three wider stats, averaged over the selected range.{'i': 'w1', 'type': 'stat', 'x': 0, 'y': 0, 'w': 4, 'h': 2,- 'cfg': {'metric': 'cpu', 'agg': 'avg', 'resource': '$server',+ 'cfg': {'title': 'CPU (average)', 'metric': 'cpu', 'agg': 'avg', 'resource': '$server','thresholds': [70, 90]}},{'i': 'w2', 'type': 'stat', 'x': 4, 'y': 0, 'w': 4, 'h': 2,- 'cfg': {'metric': 'ram', 'agg': 'avg', 'resource': '$server',+ 'cfg': {'title': 'Memory (average)', 'metric': 'ram', 'agg': 'avg', 'resource': '$server','thresholds': [80, 92]}},{'i': 'w3', 'type': 'stat', 'x': 8, 'y': 0, 'w': 4, 'h': 2,- 'cfg': {'metric': 'load', 'agg': 'last', 'resource': '$server',+ 'cfg': {'title': 'Load average', 'metric': 'load', 'agg': 'last', 'resource': '$server','thresholds': None}},# Rows 2-5: load over time next to the deploy stream.{'i': 'w4', 'type': 'timeseries', 'x': 0, 'y': 2, 'w': 8, 'h': 4,- 'cfg': {'metrics': ['cpu', 'ram'], 'resource': '$server'}},+ 'cfg': {'title': 'Performance over time', 'series': [{'resource': '$server', 'metric': 'cpu'}, {'resource': '$server', 'metric': 'ram'}],+ 'legend': True, 'fill': True}},{'i': 'w5', 'type': 'deploys', 'x': 8, 'y': 2, 'w': 4, 'h': 4,- 'cfg': {'limit': 8}},+ 'cfg': {'title': 'Deploy activity', 'limit': 8}},# Rows 6-9: full-width tail.{'i': 'w6', 'type': 'logs', 'x': 0, 'y': 6, 'w': 12, 'h': 4,- 'cfg': {'resource': '$server', 'lines': 60}},+ 'cfg': {'title': 'Live logs', 'source': 'file', 'path': '', 'containerId': '',+ 'level': 'all', 'lines': 60}},],},]diff --git a/backend/tests/test_dashboards.py b/backend/tests/test_dashboards.pyindex 7c87e4b8..81c4908a 100644--- a/backend/tests/test_dashboards.py+++ b/backend/tests/test_dashboards.py@@ -297,3 +297,77 @@ def test_widget_cfg_round_trips_verbatim(client, auth_headers):reread = client.get('/api/v1/dashboards', headers=auth_headers).get_json()['boards']assert reread[-1]['widgets'][0]['cfg'] == cfg+++# ── seeded cfg must match what the renderers actually read ───────────────────+# The shipped boards are the first thing every user sees, and a cfg key the+# frontend doesn't read fails SILENTLY — the widget just renders empty. That+# shipped once: `timeseries` seeded `metrics` while the renderer read `series`,+# and `actions` seeded `actions` while the renderer read `items`, so the default+# dashboard greeted everyone with a blank chart and "No actions selected".+#+# This table mirrors the `cfg.*` reads in+# frontend/src/components/dashboard/widgets/renderers.jsx and useWidgetData.js.+# If you change a widget's config shape there, change it here too — that is the+# coupling this test exists to make loud.+RENDERER_CFG_KEYS = {+ 'stat': {'required': {'metric', 'resource'}, 'known': {'metric', 'resource', 'agg', 'thresholds', 'spark', 'color', 'title'}},+ 'timeseries': {'required': {'series'}, 'known': {'series', 'legend', 'fill', 'title'}},+ 'gauge': {'required': {'metric', 'resource'}, 'known': {'metric', 'resource', 'agg', 'thresholds', 'title'}},+ 'topn': {'required': {'metric'}, 'known': {'metric', 'limit', 'title'}},+ 'table': {'required': {'source'}, 'known': {'source', 'limit', 'title'}},+ 'logs': {'required': {'source'}, 'known': {'source', 'path', 'containerId', 'lines', 'level', 'title'}},+ 'deploys': {'required': set(), 'known': {'limit', 'title'}},+ 'alerts': {'required': set(), 'known': {'limit', 'severity', 'title'}},+ 'status': {'required': {'source'}, 'known': {'source', 'limit', 'title'}},+ 'feed': {'required': set(), 'known': {'limit', 'title'}},+ 'actions': {'required': {'items'}, 'known': {'items', 'title'}},+ 'specs': {'required': {'resource'}, 'known': {'resource', 'title'}},+ 'note': {'required': set(), 'known': {'text', 'title'}},+}++# Shortcut keys the quick-actions widget can actually resolve to a route+# (ACTIONS in renderers.jsx). Anything else renders nothing.+QUICK_ACTION_KEYS = {+ 'servers', 'services', 'docker', 'terminal', 'deploys', 'databases',+ 'backups', 'monitoring', 'domains', 'files', 'security', 'jobs',+}+++def test_seeded_widget_cfgs_match_the_renderer_contract():+ from app.services.dashboard_service import DEFAULT_BOARDS++ problems = []+ for board in DEFAULT_BOARDS:+ for widget in board['widgets']:+ wtype = widget['type']+ spec = RENDERER_CFG_KEYS.get(wtype)+ if spec is None:+ problems.append(f"{board['slug']}/{widget['i']}: unknown widget type {wtype!r}")+ continue+ keys = set((widget.get('cfg') or {}).keys())+ missing = spec['required'] - keys+ unread = keys - spec['known']+ if missing:+ problems.append(f"{board['slug']}/{widget['i']} ({wtype}): missing {sorted(missing)}")+ if unread:+ problems.append(f"{board['slug']}/{widget['i']} ({wtype}): nothing reads {sorted(unread)}")++ assert not problems, 'seeded cfg drifted from the renderers:\n' + '\n'.join(problems)+++def test_seeded_quick_actions_all_resolve():+ """An unrecognised shortcut key is filtered out, so a typo shows an empty+ widget rather than an error."""+ from app.services.dashboard_service import DEFAULT_BOARDS++ for board in DEFAULT_BOARDS:+ for widget in board['widgets']:+ if widget['type'] != 'actions':+ continue+ items = set((widget.get('cfg') or {}).get('items') or [])+ assert items, f"{board['slug']}/{widget['i']}: quick actions with no items"+ unknown = items - QUICK_ACTION_KEYS+ assert not unknown, (+ f"{board['slug']}/{widget['i']}: unroutable shortcuts {sorted(unknown)}"+ )diff --git a/frontend/src/components/dashboard/widgets/renderers.jsx b/frontend/src/components/dashboard/widgets/renderers.jsxindex a77b9ae5..3b0723fa 100644--- a/frontend/src/components/dashboard/widgets/renderers.jsx+++ b/frontend/src/components/dashboard/widgets/renderers.jsx@@ -190,12 +190,14 @@ function WStat({ cfg, ctx }) {return (<div className="skw-stat">- <div className="skw-stat-v" style={{ color }}>{formatValue(value, metric.unit)}</div>- <div className="skw-stat-meta mono">+ <div className="skw-stat__value" style={{ color }}>{formatValue(value, metric.unit)}</div>+ <div className="skw-stat__meta mono">{delta === null ? (<span className="faint">no trend yet</span>) : (- <span className={delta >= 0 ? 'up' : 'dn'}>+ // Written out rather than interpolated so the modifier is a+ // literal a stylesheet audit can find.+ <span className={delta >= 0 ? 'skw-stat__delta skw-stat__delta--up' : 'skw-stat__delta skw-stat__delta--down'}>{delta >= 0 ? <ArrowUp size={11} /> : <ArrowDown size={11} />}{Math.abs(delta).toFixed(1)}%</span>@@ -203,7 +205,7 @@ function WStat({ cfg, ctx }) {<span className="faint">{agg} · {label}</span></div>{cfg.spark !== false && (- <div className="skw-stat-spark">+ <div className="skw-stat__spark"><Sparkline data={series} color={color} width={220} height={40} /></div>)}@@ -249,7 +251,7 @@ function WTimeseries({ cfg, ctx }) {return (<div className="skw-ts">- <div className="skw-ts-chart">+ <div className="skw-ts__chart"><WidgetChartseries={withData.map((r) => r.series)}colors={colors}@@ -261,8 +263,8 @@ function WTimeseries({ cfg, ctx }) {{withData.map((row, i) => {const last = row.series[row.series.length - 1];return (- <span className="skw-lg" key={`${row.resource}-${row.metric.id}-${i}`}>- <span className="sw" style={{ background: colors[i] }} />+ <span className="skw-legend__item" key={`${row.resource}-${row.metric.id}-${i}`}>+ <span className="skw-legend__swatch" style={{ background: colors[i] }} />{row.metric.label}<b>{formatValue(last, row.metric.unit)}</b></span>@@ -315,7 +317,7 @@ function WGauge({ cfg, ctx }) {{formatValue(value, metric.unit)}</text></svg>- <div className="skw-gauge-sub mono">+ <div className="skw-gauge__sub mono">{label}{metric.max ? ` · max ${metric.max}${metric.unit}` : ''}</div></div>@@ -351,14 +353,14 @@ function WTopN({ cfg, ctx }) {return (<div className="skw-topn">{rows.map((row) => (- <div className="skw-bar-row" key={row.id}>- <span className="skw-bar-l">{row.label}</span>+ <div className="skw-topn__row" key={row.id}>+ <span className="skw-topn__label">{row.label}</span><Gauge- className="skw-bar-t"+ className="skw-topn__track"value={(row.value / peak) * 100}color={metric.color}/>- <span className="skw-bar-v mono">{formatValue(row.value, metric.unit)}</span>+ <span className="skw-topn__value mono">{formatValue(row.value, metric.unit)}</span></div>))}</div>@@ -455,17 +457,17 @@ function WLogs({ cfg, ctx }) {return (<div className="skw-logs">- <div className="skw-logs-bar mono">+ <div className="skw-logs__bar mono"><span>{label || 'log'}</span><span className="faint">{lines.length} lines</span>{counts.err ? <span className="lv-err">{counts.err} errors</span> : null}{counts.warn ? <span className="lv-warn">{counts.warn} warnings</span> : null}</div>- <div className="skw-logs-body" ref={bodyRef}>+ <div className="skw-logs__body" ref={bodyRef}>{shown.length === 0 ? (<Empty>No lines at this level.</Empty>) : shown.map((l, i) => (- <div className={`skw-log-line lv-${l.lvl}`} key={i}>+ <div className={`skw-logs__line lv-${l.lvl}`} key={i}>{l.t ? <span className="t">{l.t}</span> : null}{l.txt}</div>@@ -509,20 +511,20 @@ function WDeploys({ cfg, ctx }) {key={job.id}onClick={() => ctx.navigate?.(`/deployments/${job.id}`)}>- <div className="skw-dep-top">- <span className="skw-dep-n">{job.app_name || job.kind || 'deployment'}</span>- <span className="skw-dep-s mono" style={{ color: DEPLOY_COLOR[job.status] || 'var(--text-faint)' }}>+ <div className="skw-dep__top">+ <span className="skw-dep__name">{job.app_name || job.kind || 'deployment'}</span>+ <span className="skw-dep__state mono" style={{ color: DEPLOY_COLOR[job.status] || 'var(--text-faint)' }}>{job.status}</span></div>{job.total_steps > 0 && (- <div className="skw-dep-steps">+ <div className="skw-dep__steps">{Array.from({ length: job.total_steps }, (_, i) => (<i key={i} className={`st ${stepState(i, job)}`} />))}</div>)}- <div className="skw-dep-meta mono">+ <div className="skw-dep__meta mono">{job.trigger || 'manual'} · {job.target_server_name || 'local'} · {relTime(job.created_at) || '—'}</div></div>@@ -553,10 +555,10 @@ function WAlerts({ cfg, ctx }) {const color = SEVERITY_COLOR[alert.severity] || 'var(--cyan)';return (<div className="skw-alert" key={alert.id} onClick={() => ctx.navigate?.('/monitoring')}>- <span className="skw-al-sev" style={{ background: color, boxShadow: `0 0 7px ${color}` }} />- <div className="skw-al-body">- <div className="skw-al-t">{alert.title}</div>- <div className="skw-al-m mono">+ <span className="skw-alert__sev" style={{ background: color, boxShadow: `0 0 7px ${color}` }} />+ <div className="skw-alert__body">+ <div className="skw-alert__title">{alert.title}</div>+ <div className="skw-alert__meta mono">{alert.target}{alert.time ? ` · ${relTime(alert.time)}` : ''}</div></div>@@ -587,14 +589,14 @@ function WStatus({ cfg, ctx }) {const color = STATE_COLOR[cell.state] || 'var(--amber)';return (<div- className="skw-st-cell"+ className="skw-status__cell"key={cell.id}onClick={() => ctx.navigate?.(target)}title={`${cell.name} · ${cell.state}`}>- <span className="skw-st-dot" style={{ background: color, boxShadow: `0 0 8px ${color}` }} />- <div className="skw-st-n">{cell.name}</div>- <div className="skw-st-m mono">{cell.meta || cell.state}</div>+ <span className="skw-status__dot" style={{ background: color, boxShadow: `0 0 8px ${color}` }} />+ <div className="skw-status__name">{cell.name}</div>+ <div className="skw-status__meta mono">{cell.meta || cell.state}</div></div>);})}@@ -629,10 +631,11 @@ function WFeed({ cfg, ctx }) {return (<div className="skw-list">{items.map((entry) => (- <div className="skw-feed-item" key={entry.id} onClick={() => ctx.navigate?.('/security')}>- <div className="skw-feed-body">- <div className="skw-feed-txt">{describeLog(entry)}</div>- <div className="skw-feed-time mono">{relTime(entry.created_at)}</div>+ <div className="skw-feed__item" key={entry.id} onClick={() => ctx.navigate?.('/security')}>+ <span className="skw-feed__dot" />+ <div className="skw-feed__body">+ <div className="skw-feed__text">{describeLog(entry)}</div>+ <div className="skw-feed__time mono">{relTime(entry.created_at)}</div></div></div>))}@@ -674,9 +677,9 @@ function WActions({ cfg, ctx }) {{items.map((key) => {const [label, Icon, href] = ACTIONS[key];return (- <button type="button" className="skw-qa-row" key={key} onClick={() => ctx.navigate?.(href)}>- <span className="skw-qa-n">{label}</span>- <span className="skw-qa-ic"><Icon size={15} /></span>+ <button type="button" className="skw-actions__row" key={key} onClick={() => ctx.navigate?.(href)}>+ <span className="skw-actions__label">{label}</span>+ <span className="skw-actions__icon"><Icon size={15} /></span></button>);})}@@ -697,9 +700,9 @@ function WSpecs({ cfg, ctx }) {return (<div className="skw-kv">{rows.map(([key, value]) => (- <div className="skw-kv-row" key={key}>- <span className="k">{key}</span>- <span className="v">{value}</span>+ <div className="skw-kv__row" key={key}>+ <span className="skw-kv__k">{key}</span>+ <span className="skw-kv__v">{value}</span></div>))}</div>diff --git a/frontend/src/components/dashboard/widgets/useWidgetData.js b/frontend/src/components/dashboard/widgets/useWidgetData.jsindex 19d1dadb..b6e0908b 100644--- a/frontend/src/components/dashboard/widgets/useWidgetData.js+++ b/frontend/src/components/dashboard/widgets/useWidgetData.js@@ -248,7 +248,9 @@ export function useServerDirectory() {/** Display name for a resource id ('local', a server id, or the '$server' var). */export function useResourceLabel(resource) {const { byId } = useServerDirectory();- if (!resource || resource === 'local') return 'Local (this server)';+ // Kept short on purpose: this sits in a stat widget's one-line meta row,+ // where "Local (this server)" wrapped onto a second line in a 3-column tile.+ if (!resource || resource === 'local') return 'This server';if (resource === '$server') return 'dashboard variable';return byId.get(resource)?.name || resource;}diff --git a/frontend/src/styles/components/_dashboard-widgets.scss b/frontend/src/styles/components/_dashboard-widgets.scssindex 378d0ddc..1c3dff41 100644--- a/frontend/src/styles/components/_dashboard-widgets.scss+++ b/frontend/src/styles/components/_dashboard-widgets.scss@@ -507,6 +507,19 @@ $skw-z-tv: 200;padding: 16px;color: var(--text-faint);font-size: 12.5px;++ // In-flight, not a message. Quieter than the resting note and pulsing on+ // the shared tick, so a frame that is still fetching cannot be misread as+ // one that came back with nothing.+ &--loading {+ color: var(--text-ghost);+ animation: skw-tick-pulse 1.4s ease-in-out infinite;+ }++ // A failure stays a coloured line rather than a red panel: one widget on a+ // board of twelve failing is not a page-level error, and the frame around+ // it already names which widget it is.+ &--error { color: var(--red); }}// ============================================================@@ -881,6 +894,14 @@ $skw-z-tv: 200;flex-shrink: 0;}+ // Middle column between the severity dot and the state pill. `min-width:0`+ // is what actually lets __title ellipsise — without it the flex item takes+ // its content's width and pushes the pill out of the row.+ &__body {+ flex: 1;+ min-width: 0;+ }+&__title {font-size: 12.5px;white-space: nowrap;@@ -939,6 +960,57 @@ $skw-z-tv: 200;}}+// ---- feed: audit / activity trail ---------------------------+// An audit row is one sentence with a timestamp under it, so the block gives+// the column the two things the text cannot: a marker rail to scan down, and a+// rule between rows. Shares .skw-list's scroll, like deploys and alerts.+.skw-feed {+ &__item {+ display: flex;+ align-items: flex-start;+ gap: 9px;+ padding: 8px 13px;+ border-bottom: 1px solid var(--border-soft);+ cursor: pointer;+ transition: background 0.12s;++ &:hover { background: var(--surface-2); }+ }++ // Marker rather than a per-action icon: the feed carries arbitrary audit+ // actions and inventing a glyph per action would be guessing. Nudged down+ // so it sits on the first text line, not above it.+ &__dot {+ width: 6px;+ height: 6px;+ margin-top: 5px;+ flex-shrink: 0;+ border-radius: 50%;+ background: var(--text-ghost);+ transition: background 0.12s;+ }++ &__item:hover &__dot { background: var(--accent-bright); }++ &__body { flex: 1; min-width: 0; }++ // Wraps rather than truncates — unlike a name in a table this IS the row's+ // content, and a clipped audit line is worthless. `anywhere` so a long+ // target id breaks instead of widening the widget.+ &__text {+ color: var(--text-dim);+ font-size: 12px;+ line-height: 1.45;+ overflow-wrap: anywhere;+ }++ &__time {+ margin-top: 2px;+ color: var(--text-ghost);+ font-size: 10.5px;+ }+}+// ---- actions: shortcut buttons ------------------------------.skw-actions {display: flex;@@ -947,6 +1019,59 @@ $skw-z-tv: 200;padding: 12px 13px;overflow: auto;@include custom-scrollbar;++ // Full-width rows, not a tile grid: the labels are route names of very+ // uneven length ("Jobs" next to "Docker containers"), which a grid of+ // fixed cells renders as ragged whitespace.+ &__row {+ display: flex;+ align-items: center;+ gap: 10px;+ width: 100%;+ padding: 8px 10px;+ border: 1px solid var(--border);+ border-radius: 8px;+ background: var(--surface-2);+ color: var(--text-dim);+ font-family: inherit;+ font-size: 12.5px;+ text-align: left;+ cursor: pointer;+ transition: 0.13s;++ &:hover {+ color: var(--text);+ border-color: var(--accent-dim);+ background: var(--surface-3);+ }+ }++ &__label {+ flex: 1;+ min-width: 0;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ // Trailing chip. Fixed box so every row's glyph lands on the same column+ // however long its label is.+ &__icon {+ display: grid;+ place-items: center;+ width: 24px;+ height: 24px;+ flex-shrink: 0;+ border-radius: 7px;+ background: var(--surface-3);+ color: var(--text-faint);+ transition: 0.13s;+ }++ &__row:hover &__icon {+ background: var(--accent-bg);+ color: var(--accent-bright);+ }}// ---- specs: key/value host details --------------------------