diff --git a/web/static/css/style.css b/web/static/css/style.css index 1c82929a..09f40700 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -21692,12 +21692,12 @@ tr.mcp-stats-tool-row[data-tool-name]:focus-visible { padding-top: 18px; border-top: 1px dashed rgba(0, 0, 0, 0.08); display: grid; - grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); - gap: 24px; + grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); + gap: 16px; align-items: center; } -@media (max-width: 980px) { +@media (max-width: 900px) { .dashboard-severity-status { grid-template-columns: minmax(0, 1fr); gap: 16px; @@ -21707,12 +21707,14 @@ tr.mcp-stats-tool-row[data-tool-name]:focus-visible { .dashboard-severity-status-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); - gap: 10px; + gap: 12px; + min-width: 0; } @media (max-width: 1180px) { .dashboard-severity-status-grid { - grid-template-columns: repeat(3, minmax(0, 1fr)); + grid-template-columns: repeat(5, minmax(0, 1fr)); + gap: 8px; } } @@ -21723,10 +21725,13 @@ tr.mcp-stats-tool-row[data-tool-name]:focus-visible { } .dashboard-severity-status-cell { + position: relative; display: flex; + flex-direction: column; align-items: center; - gap: 10px; - padding: 10px 12px; + justify-content: center; + min-height: 64px; + padding: 14px 8px 10px; border-radius: 10px; background: #fafbfc; border: 1px solid rgba(0, 0, 0, 0.05); @@ -21750,49 +21755,71 @@ tr.mcp-stats-tool-row[data-tool-name]:focus-visible { } .dashboard-severity-status-icon { - width: 30px; - height: 30px; - border-radius: 8px; - display: inline-flex; - align-items: center; - justify-content: center; - flex-shrink: 0; + display: none; } -.dashboard-severity-status-cell.s-open .dashboard-severity-status-icon { background: rgba(239, 68, 68, 0.10); color: #dc2626; } -.dashboard-severity-status-cell.s-confirmed .dashboard-severity-status-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; } -.dashboard-severity-status-cell.s-fixed .dashboard-severity-status-icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; } -.dashboard-severity-status-cell.s-fp .dashboard-severity-status-icon { background: rgba(148, 163, 184, 0.18); color: #64748b; } -.dashboard-severity-status-cell.s-ignored .dashboard-severity-status-icon { background: rgba(100, 116, 139, 0.16); color: #64748b; } +.dashboard-severity-status-cell.s-open { border-color: rgba(239, 68, 68, 0.20); background: rgba(239, 68, 68, 0.035); } +.dashboard-severity-status-cell.s-confirmed { border-color: rgba(245, 158, 11, 0.20); background: rgba(245, 158, 11, 0.035); } +.dashboard-severity-status-cell.s-fixed { border-color: rgba(34, 197, 94, 0.20); background: rgba(34, 197, 94, 0.035); } +.dashboard-severity-status-cell.s-ignored { border-color: rgba(100, 116, 139, 0.22); background: rgba(100, 116, 139, 0.04); } +.dashboard-severity-status-cell.s-fp { border-color: rgba(148, 163, 184, 0.22); background: rgba(148, 163, 184, 0.04); } + +.dashboard-severity-status-cell.s-open .dashboard-severity-status-value { color: #ef4444; } +.dashboard-severity-status-cell.s-confirmed .dashboard-severity-status-value { color: #f59e0b; } +.dashboard-severity-status-cell.s-fixed .dashboard-severity-status-value { color: #22c55e; } +.dashboard-severity-status-cell.s-ignored .dashboard-severity-status-value { color: #94a3b8; } +.dashboard-severity-status-cell.s-fp .dashboard-severity-status-value { color: #cbd5e1; } .dashboard-severity-status-text { display: flex; flex-direction: column; - line-height: 1.2; + align-items: center; + justify-content: center; min-width: 0; + width: 100%; } .dashboard-severity-status-value { - font-size: 1.125rem; + font-size: 1.25rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; + line-height: 1.1; } .dashboard-severity-status-label { + min-width: 0; font-size: 0.75rem; color: var(--text-secondary); - margin-top: 2px; + margin-top: 4px; white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + line-height: 1.2; +} + +@media (max-width: 1180px) { + .dashboard-severity-status-cell { + min-height: 58px; + padding: 12px 6px 8px; + } + + .dashboard-severity-status-label { + font-size: 0.71875rem; + } + + .dashboard-severity-status-value { + font-size: 1.125rem; + } } .dashboard-severity-progress { display: flex; flex-direction: column; gap: 8px; + justify-self: end; + width: 100%; + max-width: 380px; + min-width: 0; } .dashboard-severity-progress-meta { @@ -30986,6 +31013,28 @@ html[data-theme="dark"] .dashboard-batch-side-body:hover { border-color: #334155 !important; } +html[data-theme="dark"] .dashboard-batch-side-stat--pending { + background: rgba(245, 158, 11, 0.07) !important; + border-color: rgba(245, 158, 11, 0.24) !important; + border-top-color: #f59e0b !important; +} + +html[data-theme="dark"] .dashboard-batch-side-stat--running { + background: rgba(59, 130, 246, 0.07) !important; + border-color: rgba(59, 130, 246, 0.24) !important; + border-top-color: #3b82f6 !important; +} + +html[data-theme="dark"] .dashboard-batch-side-stat--done { + background: rgba(16, 185, 129, 0.07) !important; + border-color: rgba(16, 185, 129, 0.24) !important; + border-top-color: #10b981 !important; +} + +html[data-theme="dark"] .dashboard-batch-side-stat--pending .dashboard-batch-side-stat-value { color: #f59e0b; } +html[data-theme="dark"] .dashboard-batch-side-stat--running .dashboard-batch-side-stat-value { color: #60a5fa; } +html[data-theme="dark"] .dashboard-batch-side-stat--done .dashboard-batch-side-stat-value { color: #34d399; } + html[data-theme="dark"] .dashboard-kpi-card, html[data-theme="dark"] .dashboard-kpi-card:nth-child(1), html[data-theme="dark"] .dashboard-kpi-card:nth-child(2), @@ -31112,6 +31161,31 @@ html[data-theme="dark"] .dashboard-severity-progress-legend-dot.legend-open { border-color: #475569 !important; } +html[data-theme="dark"] .dashboard-severity-status-cell.s-open { + border-color: rgba(239, 68, 68, 0.26) !important; + background: rgba(239, 68, 68, 0.07) !important; +} + +html[data-theme="dark"] .dashboard-severity-status-cell.s-confirmed { + border-color: rgba(245, 158, 11, 0.26) !important; + background: rgba(245, 158, 11, 0.07) !important; +} + +html[data-theme="dark"] .dashboard-severity-status-cell.s-fixed { + border-color: rgba(34, 197, 94, 0.26) !important; + background: rgba(34, 197, 94, 0.07) !important; +} + +html[data-theme="dark"] .dashboard-severity-status-cell.s-ignored { + border-color: rgba(100, 116, 139, 0.30) !important; + background: rgba(100, 116, 139, 0.08) !important; +} + +html[data-theme="dark"] .dashboard-severity-status-cell.s-fp { + border-color: rgba(148, 163, 184, 0.30) !important; + background: rgba(148, 163, 184, 0.08) !important; +} + html[data-theme="dark"] .dashboard-severity-insight-risk[data-level="safe"] { border-color: rgba(52, 211, 153, 0.24) !important; background: rgba(52, 211, 153, 0.08) !important; @@ -31169,6 +31243,28 @@ html[data-theme="dark"] .dashboard-alert-btn { background: rgba(15, 23, 42, 0.72); } +html[data-theme="dark"] .dashboard-recommend-item.lvl-urgent { + border-left-color: #f87171; +} + +html[data-theme="dark"] .dashboard-recommend-item.lvl-urgent .dashboard-recommend-icon { + background: rgba(248, 113, 113, 0.14); + color: #f87171; + box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28); +} + +html[data-theme="dark"] .dashboard-recommend-item.lvl-warning .dashboard-recommend-icon { + background: rgba(251, 191, 36, 0.14); + color: #fbbf24; + box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.26); +} + +html[data-theme="dark"] .dashboard-recommend-item.lvl-setup .dashboard-recommend-icon { + background: rgba(96, 165, 250, 0.14); + color: #60a5fa; + box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.26); +} + html[data-theme="dark"] .dashboard-access-stat--c2, html[data-theme="dark"] .dashboard-access-stat--webshell { background: linear-gradient(145deg, #111827 0%, #172033 100%) !important;