Design: Serverpuls-Kopf mit Text-Badge, Warnungen als Zeilen, Kacheln als Kennzahlen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bca99d4790
commit
ab4a300e70
2 files changed
+87
-92
No files matched your search
@@ -1,10 +1,11 @@
|
|||||||
import { useCallback, useEffect, useRef, useMemo, useState } from 'react'
|
import { useCallback, useEffect, useRef, useMemo, useState } from 'react'
|
||||||
import { Navigate } from 'react-router-dom'
|
import { Navigate } from 'react-router-dom'
|
||||||
import { useAuth } from '../context/AuthContext'
|
import { useAuth } from '../context/AuthContext'
|
||||||
import { PageHeader } from '../components/ui'
|
import { PageHeader, Badge, Stat } from '../components/ui'
|
||||||
|
import { badgeToneClass } from '../components/ui/tones'
|
||||||
import { serverpulsApi } from '../lib/serverpulsApi'
|
import { serverpulsApi } from '../lib/serverpulsApi'
|
||||||
import {
|
import {
|
||||||
ageLabel, formatBytes, formatNumber, formatPct, formatSince, usedPct,
|
ageLabel, deltaDir, deltaSign, formatBytes, formatNumber, formatPct, formatSince, levelTone, usedPct,
|
||||||
} from '../lib/serverpulsFormat'
|
} from '../lib/serverpulsFormat'
|
||||||
import Chart from '../components/serverpuls/Chart'
|
import Chart from '../components/serverpuls/Chart'
|
||||||
import { CHART } from '../components/serverpuls/chartColors'
|
import { CHART } from '../components/serverpuls/chartColors'
|
||||||
@@ -81,20 +82,17 @@ function Tile({ id, label, model }) {
|
|||||||
let deltaEl = null
|
let deltaEl = null
|
||||||
if (model && model.delta !== null && model.delta !== undefined) {
|
if (model && model.delta !== null && model.delta !== undefined) {
|
||||||
const d = model.delta
|
const d = model.delta
|
||||||
const dir = Math.abs(d) < 1e-9 ? 'flat' : d > 0 ? 'up' : 'down'
|
const dir = deltaDir(d)
|
||||||
const sign = dir === 'up' ? '▲ +' : dir === 'down' ? '▼ −' : ''
|
|
||||||
deltaEl = (
|
deltaEl = (
|
||||||
<div className={`sp-tile-delta sp-delta-${dir}`}>
|
<div className={`sp-tile-delta sp-delta-${dir}`}>
|
||||||
{sign}{model.fmtDelta(d)} ggü. gestern
|
{deltaSign(dir)}{model.fmtDelta(d)} ggü. gestern
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="sp-tile" data-testid={`sp-tile-${id}`}>
|
<div className="sp-tile" data-testid={`sp-tile-${id}`}>
|
||||||
<div className="sp-tile-label">{label}</div>
|
<Stat label={label} value={model ? model.main : '–'} sub={model?.sub || '\u00a0'} />
|
||||||
<div className="sp-tile-value">{model ? model.main : '–'}</div>
|
<Sparkline points={model?.spark || []} width={120} height={32} />
|
||||||
<div className="sp-tile-sub">{model?.sub || ' '}</div>
|
|
||||||
<Sparkline points={model?.spark || []} width={200} height={36} />
|
|
||||||
{deltaEl}
|
{deltaEl}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@@ -102,40 +100,44 @@ function Tile({ id, label, model }) {
|
|||||||
|
|
||||||
function Pills({ items, value, onChange, testid }) {
|
function Pills({ items, value, onChange, testid }) {
|
||||||
return (
|
return (
|
||||||
<div className="sp-pills" data-testid={testid}>
|
<div className="seg" data-testid={testid}>
|
||||||
{items.map((it) => (
|
{items.map((it) => {
|
||||||
|
const active = value === it.id
|
||||||
|
return (
|
||||||
<button
|
<button
|
||||||
key={it.id}
|
key={it.id}
|
||||||
type="button"
|
type="button"
|
||||||
className={`sp-pill ${value === it.id ? 'active' : ''}`}
|
className={active ? 'on' : undefined}
|
||||||
|
aria-pressed={active}
|
||||||
onClick={() => onChange(it.id)}
|
onClick={() => onChange(it.id)}
|
||||||
>
|
>
|
||||||
{it.label}
|
{it.label}
|
||||||
</button>
|
</button>
|
||||||
))}
|
)
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function Cleanup({ data }) {
|
function Cleanup({ data }) {
|
||||||
if (!data || !data.day) return <div className="sp-muted">Noch keine Messung.</div>
|
if (!data || !data.day) return <div className="muted">Noch keine Messung.</div>
|
||||||
const stopped = Array.isArray(data.stopped) ? data.stopped : []
|
const stopped = Array.isArray(data.stopped) ? data.stopped : []
|
||||||
return (
|
return (
|
||||||
<div className="sp-cleanup-body">
|
<>
|
||||||
<div className="sp-cleanup-grid">
|
<div className="stats sp-cleanup-stats">
|
||||||
<div><span className="sp-muted">Ungenutzte Images</span><strong>{formatBytes(data.imagesBytes)}</strong></div>
|
<Stat label="Ungenutzte Images" value={formatBytes(data.imagesBytes)} />
|
||||||
<div><span className="sp-muted">Build-Cache</span><strong>{formatBytes(data.buildCacheBytes)}</strong></div>
|
<Stat label="Build-Cache" value={formatBytes(data.buildCacheBytes)} />
|
||||||
<div><span className="sp-muted">Gestoppte Container</span><strong>{formatBytes(data.stoppedBytes)}</strong></div>
|
<Stat label="Gestoppte Container" value={formatBytes(data.stoppedBytes)} />
|
||||||
</div>
|
</div>
|
||||||
{stopped.length > 0 && (
|
{stopped.length > 0 && (
|
||||||
<ul className="sp-cleanup-list">
|
<ul className="sp-cleanup-list">
|
||||||
{stopped.map((s) => (
|
{stopped.map((s) => (
|
||||||
<li key={s.name}><span>{s.name}</span><span>{formatBytes(s.bytes)}</span></li>
|
<li key={s.name} className="list-row"><span>{s.name}</span><span className="num">{formatBytes(s.bytes)}</span></li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
<div className="sp-muted sp-small">Stand {data.day} · nur Anzeige, hier wird nichts gelöscht.</div>
|
<p className="muted small">Stand {data.day} · nur Anzeige, hier wird nichts gelöscht.</p>
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,7 +247,6 @@ export default function ServerpulsPage() {
|
|||||||
const level = overview?.level || 'ok'
|
const level = overview?.level || 'ok'
|
||||||
const alerts = overview?.alerts || []
|
const alerts = overview?.alerts || []
|
||||||
const age = ageLabel(overview?.lastSample ?? null, now)
|
const age = ageLabel(overview?.lastSample ?? null, now)
|
||||||
const dot = level === 'critical' ? '🔴' : level === 'medium' ? '🟠' : '🟢'
|
|
||||||
const headline = level === 'ok'
|
const headline = level === 'ok'
|
||||||
? 'Alles ok'
|
? 'Alles ok'
|
||||||
: level === 'critical'
|
: level === 'critical'
|
||||||
@@ -256,14 +257,20 @@ export default function ServerpulsPage() {
|
|||||||
<div className="page sp-page" data-testid="sp-page">
|
<div className="page sp-page" data-testid="sp-page">
|
||||||
<PageHeader title="Serverpuls" subtitle="Zustand und Verlauf des Servers – nur Anzeige" />
|
<PageHeader title="Serverpuls" subtitle="Zustand und Verlauf des Servers – nur Anzeige" />
|
||||||
|
|
||||||
{error && <div className="sp-error" data-testid="sp-error" role="alert">{error}</div>}
|
{error && <div className="msg err" data-testid="sp-error" role="alert">{error}</div>}
|
||||||
|
|
||||||
<section className={`sp-head sp-level-${level}`} data-testid="sp-head">
|
<section data-testid="sp-head">
|
||||||
<div className="sp-head-top">
|
<div className="sp-head-top">
|
||||||
<span className="sp-ampel" data-testid="sp-ampel" data-level={level}>{dot}</span>
|
<span
|
||||||
|
className={overview ? badgeToneClass(levelTone(level)) : 'badge plain'}
|
||||||
|
data-testid="sp-ampel"
|
||||||
|
data-level={level}
|
||||||
|
>
|
||||||
|
{overview ? (LEVEL_TEXT[level] || level) : '–'}
|
||||||
|
</span>
|
||||||
<strong className="sp-headline">{overview ? headline : (error ? 'Keine Daten' : 'Lädt …')}</strong>
|
<strong className="sp-headline">{overview ? headline : (error ? 'Keine Daten' : 'Lädt …')}</strong>
|
||||||
{overview && (
|
{overview && (
|
||||||
<span className={`sp-age ${age.stale ? 'sp-age-stale' : ''}`} data-testid="sp-age" data-stale={age.stale ? '1' : '0'}>
|
<span className={age.stale ? 'sp-age sp-age-stale' : 'sp-age'} data-testid="sp-age" data-stale={age.stale ? '1' : '0'}>
|
||||||
Letzte Messung {age.text}{age.stale ? ' – Daten veraltet' : ''}
|
Letzte Messung {age.text}{age.stale ? ' – Daten veraltet' : ''}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
@@ -271,46 +278,46 @@ export default function ServerpulsPage() {
|
|||||||
{alerts.length > 0 && (
|
{alerts.length > 0 && (
|
||||||
<ul className="sp-alerts" data-testid="sp-alerts">
|
<ul className="sp-alerts" data-testid="sp-alerts">
|
||||||
{alerts.map((a) => (
|
{alerts.map((a) => (
|
||||||
<li key={a.id} className={`sp-alert sp-alert-${a.level}`} data-testid="sp-alert">
|
<li key={a.id} className="list-row" data-testid="sp-alert">
|
||||||
<span className="sp-alert-level">{LEVEL_LABEL[a.level] || a.level}</span>
|
<div className="sp-alert-main">
|
||||||
|
<Badge tone={levelTone(a.level)}>{LEVEL_LABEL[a.level] || a.level}</Badge>
|
||||||
<span className="sp-alert-title">{a.title}</span>
|
<span className="sp-alert-title">{a.title}</span>
|
||||||
<span className="sp-alert-value">{a.value}</span>
|
<span className="sp-alert-value">{a.value}</span>
|
||||||
<span className="sp-muted sp-small">seit {formatSince(a.since)}</span>
|
</div>
|
||||||
|
<span className="muted small nowrap">seit {formatSince(a.since)}</span>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="sp-tiles" data-testid="sp-tiles">
|
<section className="stats sp-tiles" data-testid="sp-tiles">
|
||||||
{METRICS.map((x) => (
|
{METRICS.map((x) => (
|
||||||
<Tile key={x.id} id={x.id} label={x.label} model={tileModel(x.id, overview?.host?.[x.id])} />
|
<Tile key={x.id} id={x.id} label={x.label} model={tileModel(x.id, overview?.host?.[x.id])} />
|
||||||
))}
|
))}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="sp-panel" data-testid="sp-chart-panel">
|
<section className="sp-panel" data-testid="sp-chart-panel">
|
||||||
<div className="sp-panel-head">
|
<h2 className="section"><span>Verlauf</span></h2>
|
||||||
<h3>Verlauf</h3>
|
|
||||||
<div className="sp-controls">
|
<div className="sp-controls">
|
||||||
<Pills items={METRICS} value={metric} onChange={changeMetric} testid="sp-metric-select" />
|
<Pills items={METRICS} value={metric} onChange={changeMetric} testid="sp-metric-select" />
|
||||||
<Pills items={RANGES} value={range} onChange={changeRange} testid="sp-range-select" />
|
<Pills items={RANGES} value={range} onChange={changeRange} testid="sp-range-select" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{chartData && chartData.data[0].length > 0
|
{chartData && chartData.data[0].length > 0
|
||||||
? <Chart data={chartData.data} series={chartData.series} yFmt={m.fmt} />
|
? <Chart data={chartData.data} series={chartData.series} yFmt={m.fmt} />
|
||||||
: <div className="sp-muted sp-nodata">{chart ? 'Für diesen Zeitraum liegen keine Messwerte vor.' : 'Lädt …'}</div>}
|
: <div className="muted sp-nodata">{chart ? 'Für diesen Zeitraum liegen keine Messwerte vor.' : 'Lädt …'}</div>}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="sp-panel" data-testid="sp-projects">
|
<section className="sp-panel" data-testid="sp-projects">
|
||||||
<div className="sp-panel-head">
|
<h2 className="section">
|
||||||
<h3>Projekte</h3>
|
<span>Projekte</span>
|
||||||
{appsData?.sizesDay && <span className="sp-muted sp-small">Größen von {appsData.sizesDay}</span>}
|
{appsData?.sizesDay && <span className="muted small">Größen von {appsData.sizesDay}</span>}
|
||||||
</div>
|
</h2>
|
||||||
<AppsTable rows={appsData?.rows || []} selectedId={selected} onSelect={selectApp} />
|
<AppsTable rows={appsData?.rows || []} selectedId={selected} onSelect={selectApp} />
|
||||||
{selected && (
|
{selected && (
|
||||||
<div className="sp-detail" data-testid="sp-detail">
|
<div className="sp-detail" data-testid="sp-detail">
|
||||||
<div className="sp-panel-head">
|
<h3 className="sp-detail-title">{detail?.name || selected}</h3>
|
||||||
<h3>{detail?.name || selected}</h3>
|
<div className="sp-controls">
|
||||||
<Pills items={RANGES} value={detailRange} onChange={changeDetailRange} testid="sp-detail-range" />
|
<Pills items={RANGES} value={detailRange} onChange={changeDetailRange} testid="sp-detail-range" />
|
||||||
</div>
|
</div>
|
||||||
{detailData ? (
|
{detailData ? (
|
||||||
@@ -319,13 +326,13 @@ export default function ServerpulsPage() {
|
|||||||
<div><div className="sp-chart-title">RAM</div><Chart data={detailData.mem.data} series={detailData.mem.series} yFmt={formatBytes} height={200} /></div>
|
<div><div className="sp-chart-title">RAM</div><Chart data={detailData.mem.data} series={detailData.mem.series} yFmt={formatBytes} height={200} /></div>
|
||||||
<div><div className="sp-chart-title">CPU</div><Chart data={detailData.cpu.data} series={detailData.cpu.series} yFmt={(v) => formatPct(v)} height={200} /></div>
|
<div><div className="sp-chart-title">CPU</div><Chart data={detailData.cpu.data} series={detailData.cpu.series} yFmt={(v) => formatPct(v)} height={200} /></div>
|
||||||
</div>
|
</div>
|
||||||
) : <div className="sp-muted sp-nodata">Lädt …</div>}
|
) : <div className="muted sp-nodata">Lädt …</div>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="sp-panel" data-testid="sp-cleanup">
|
<section className="sp-panel" data-testid="sp-cleanup">
|
||||||
<div className="sp-panel-head"><h3>Aufräumbar</h3></div>
|
<h2 className="section"><span>Aufräumbar</span></h2>
|
||||||
<Cleanup data={cleanup} />
|
<Cleanup data={cleanup} />
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+37
-49
@@ -1,49 +1,30 @@
|
|||||||
/* Serverpuls (Admin) */
|
/* Serverpuls (P9): Kopf, Warnungen, Kacheln, Umschalter, Panels. Die Tabellenregeln weiter unten gehoeren Task 5. */
|
||||||
.sp-page { display: flex; flex-direction: column; gap: var(--sp-4); }
|
.sp-page .msg { margin: 0 0 16px; }
|
||||||
.sp-error { background: var(--red-bg); border: 1px solid var(--danger-ring); color: var(--red-fg); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); }
|
|
||||||
.sp-muted { color: var(--text-muted); }
|
|
||||||
.sp-small { font-size: 12px; }
|
|
||||||
|
|
||||||
.sp-head { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
|
.sp-head-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||||
.sp-level-medium { border-color: var(--orange-fg); }
|
.sp-headline { font-size: 16px; line-height: 24px; font-weight: 600; }
|
||||||
.sp-level-critical { border-color: var(--danger); }
|
.sp-age { margin-left: auto; font-size: 13px; color: var(--text-2); }
|
||||||
.sp-head-top { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
|
.sp-age-stale { color: var(--orange-fg); font-weight: 500; }
|
||||||
.sp-headline { font-size: 18px; }
|
.sp-alerts { list-style: none; margin: 12px 0 0; padding: 0; }
|
||||||
.sp-age { margin-left: auto; font-size: 13px; color: var(--text-muted); }
|
.sp-alert-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
|
||||||
.sp-age-stale { color: var(--orange-fg); background: var(--orange-bg); padding: 2px 10px; border-radius: var(--r-pill); }
|
.sp-alert-title { font-weight: 500; overflow-wrap: anywhere; }
|
||||||
.sp-alerts { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
.sp-alert-value { color: var(--text-2); }
|
||||||
.sp-alert { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); border-left: 3px solid var(--text-faint); }
|
|
||||||
.sp-alert-critical { border-left-color: var(--danger); }
|
|
||||||
.sp-alert-medium { border-left-color: var(--warn); }
|
|
||||||
.sp-alert-level { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); min-width: 56px; }
|
|
||||||
.sp-alert-title { font-weight: 600; }
|
|
||||||
.sp-alert-value { color: var(--text-muted); }
|
|
||||||
|
|
||||||
.sp-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); }
|
.stats.sp-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 32px; }
|
||||||
@media (max-width: 1100px) { .sp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
.sp-tile { min-width: 0; }
|
||||||
@media (max-width: 700px) { .sp-tiles { grid-template-columns: 1fr; } .sp-age { margin-left: 0; } }
|
.sp-tile .sub { min-height: 16px; }
|
||||||
.sp-tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
||||||
.sp-tile-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
|
|
||||||
.sp-tile-value { font-size: 26px; font-weight: 800; }
|
|
||||||
.sp-tile-sub { font-size: 12px; color: var(--text-muted); min-height: 16px; }
|
|
||||||
.sp-tile-delta { font-size: 12px; margin-top: 2px; }
|
|
||||||
.sp-spark { display: block; max-width: 100%; margin-top: 6px; }
|
.sp-spark { display: block; max-width: 100%; margin-top: 6px; }
|
||||||
|
.sp-tile-delta { font-size: 12px; line-height: 16px; margin-top: 4px; }
|
||||||
|
.sp-delta-up { color: var(--red-fg); }
|
||||||
|
.sp-delta-down { color: var(--green-fg); }
|
||||||
|
.sp-delta-flat { color: var(--text-2); }
|
||||||
|
|
||||||
.sp-delta-up { color: var(--danger); }
|
.sp-panel { min-width: 0; }
|
||||||
.sp-delta-down { color: var(--ok); }
|
.sp-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
|
||||||
.sp-delta-flat { color: var(--text-muted); }
|
.sp-controls .seg { flex-wrap: wrap; }
|
||||||
|
|
||||||
.sp-panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); min-width: 0; }
|
|
||||||
.sp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
|
|
||||||
.sp-panel-head h3 { margin: 0; font-size: 16px; }
|
|
||||||
.sp-controls { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
|
|
||||||
.sp-pills { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
||||||
.sp-pill { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--r-pill); padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
|
|
||||||
.sp-pill:hover { color: var(--text); }
|
|
||||||
.sp-pill.active { background: var(--accent-soft); border-color: var(--border-accent); color: var(--accent); font-weight: 600; }
|
|
||||||
.sp-chart { width: 100%; min-height: 200px; }
|
.sp-chart { width: 100%; min-height: 200px; }
|
||||||
.sp-chart .u-legend { color: var(--text-muted); font-size: 12px; }
|
.sp-chart .u-legend { font-size: 13px; color: var(--text-2); }
|
||||||
.sp-nodata { padding: var(--sp-6, 32px) 0; text-align: center; }
|
.sp-nodata { padding: 40px 0; text-align: center; color: var(--text-2); }
|
||||||
|
|
||||||
.sp-search { width: 100%; max-width: 320px; margin-bottom: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; }
|
.sp-search { width: 100%; max-width: 320px; margin-bottom: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; }
|
||||||
.sp-table-wrap { overflow-x: auto; }
|
.sp-table-wrap { overflow-x: auto; }
|
||||||
@@ -57,12 +38,19 @@
|
|||||||
.sp-empty { text-align: center; color: var(--text-muted); }
|
.sp-empty { text-align: center; color: var(--text-muted); }
|
||||||
.sp-delta { font-variant-numeric: tabular-nums; }
|
.sp-delta { font-variant-numeric: tabular-nums; }
|
||||||
|
|
||||||
.sp-detail { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
|
.sp-detail { margin-top: 28px; }
|
||||||
.sp-detail-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--sp-4); }
|
.sp-detail-title { margin: 0 0 8px; font-size: 15px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
|
||||||
.sp-chart-title { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
|
.sp-detail-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px; }
|
||||||
|
.sp-chart-title { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
|
||||||
|
|
||||||
.sp-cleanup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }
|
.sp-cleanup-list { list-style: none; margin: 12px 0; padding: 0; }
|
||||||
.sp-cleanup-grid > div { display: flex; flex-direction: column; gap: 2px; }
|
|
||||||
.sp-cleanup-grid strong { font-size: 20px; }
|
@media (max-width: 1100px) {
|
||||||
.sp-cleanup-list { list-style: none; margin: var(--sp-3) 0; padding: 0; }
|
.stats.sp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||||
.sp-cleanup-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
|
}
|
||||||
|
|
||||||
|
@media (max-width: 860px) {
|
||||||
|
.stats.sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
|
||||||
|
.sp-age { margin-left: 0; }
|
||||||
|
.sp-page .sp-cleanup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||||
|
}
|
||||||
Reference in new issue
Block a user