diff --git a/index.html b/index.html index 5586635..f358f9a 100644 --- a/index.html +++ b/index.html @@ -16,8 +16,8 @@
-
+
@@ -192,7 +193,7 @@ - @@ -229,7 +230,7 @@
Чат-бот - + Готов
diff --git a/script.js b/script.js index fc2fbdb..12d4f8b 100644 --- a/script.js +++ b/script.js @@ -295,7 +295,7 @@ function summaryRowHtml(r) { const renameTxt = showRename ? 'Было: ' + r.originalName + ' → ' + r.metricName : r.originalName; return '' + '' + (c ? c.name : r.company) + '' + - '
' + + '
' + '' + r.metricName + '' + (showRename ? '' + renameTxt + '' : '') + '
' + @@ -303,7 +303,7 @@ function summaryRowHtml(r) { fmtValue(r) + ' ' + r.unit + '' + '' + r.source + '' + - '
' + statusPillHtml(r.status) + '
' + rowActionsForSummary(r) + '
' + + '
' + statusPillHtml(r.status) + '
' + rowActionsForSummary(r) + '
' + ''; } @@ -1100,6 +1100,11 @@ function bindAll() { bindSummary(); bindVerify(); bindDashboard(); + const btnToggle = el('btnToggleTheme'); + if (btnToggle) btnToggle.addEventListener('click', function () { + const cur = document.documentElement.getAttribute('data-theme') || 'light'; + document.documentElement.setAttribute('data-theme', cur === 'light' ? 'dark' : 'light'); + }); } function init() { diff --git a/style.css b/style.css index 957ccec..bb2ad59 100644 --- a/style.css +++ b/style.css @@ -11,7 +11,7 @@ width: auto; } -.brand-label { +.kt-ai-brand-label { font-size: var(--kt-ai-text-xs); color: var(--kt-ai-fg); font-weight: var(--kt-ai-weight-medium); @@ -30,18 +30,18 @@ margin-top: auto; } -.topbar-left { +.kt-ai-topbar-left { display: flex; align-items: center; gap: var(--kt-ai-space-4); } -.topbar-crumb { +.kt-ai-topbar-crumb { font-size: var(--kt-ai-text-sm); color: var(--kt-ai-fg-muted); } -.topbar-actions { +.kt-ai-topbar-actions { display: flex; align-items: center; gap: var(--kt-ai-space-3); @@ -398,18 +398,22 @@ /* === Дополнительные детали === */ -.metric-cell { +.kt-ai-btn--margin-bottom { + margin-bottom: var(--kt-ai-space-4); +} + +.kt-ai-metric-cell { display: flex; flex-direction: column; gap: 2px; } -.metric-name { +.kt-ai-metric-name { font-weight: var(--kt-ai-weight-medium); color: var(--kt-ai-fg); } -.metric-source { +.kt-ai-metric-source { font-size: var(--kt-ai-text-2xs); color: var(--kt-ai-fg-faint); } @@ -436,19 +440,19 @@ flex-wrap: wrap; } -.status-cell { +.kt-ai-status-cell { width: 1%; white-space: nowrap; } -.status-cell-in { +.kt-ai-status-cell-in { display: flex; flex-direction: column; align-items: flex-end; gap: var(--kt-ai-space-2); } -.status-cell-in .kt-ai-cell-actions { +.kt-ai-status-cell-in .kt-ai-cell-actions { flex-direction: row; } @@ -491,6 +495,6 @@ pointer-events: none; } -.topbar-spacer { +.kt-ai-topbar-spacer { flex: 1; }