From 75808916c51142fe5884437a941c43a6762021e0 Mon Sep 17 00:00:00 2001 From: tore Date: Tue, 22 Sep 2026 09:59:34 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8C=D1=8E=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D0=B8=D0=B5=20KT=20AI=20DS=20=E2=80=93=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D1=84=D0=B8=D0=BA=D1=81=D1=8B,=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=D0=B0,=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 ++++++++------- script.js | 9 +++++++-- style.css | 26 +++++++++++++++----------- 3 files changed, 30 insertions(+), 20 deletions(-) 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; }