From ea2cc9dacad4ca4c8d4b5dac82ddd019d2d8b1ba Mon Sep 17 00:00:00 2001 From: lokses Date: Tue, 28 Jul 2026 15:55:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B0=D1=82:=20=D0=B0=D0=BA=D0=BA=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D0=BD=D1=8B=D0=B9=20=D1=81=D0=B0=D0=B9=D0=B4?= =?UTF-8?q?=D0=B1=D0=B0=D1=80=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=9B=D0=A1=20=D0=B8=20=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Единый скролл вместо жёсткого max-height:35% на ЛС и flex:1 на каналах (убран пустой провал под каналами) - Секции-заголовки — компактные uppercase-подписи в стиле портала - Строки ЛС и каналов выровнены по единому левому краю (0.75rem) Co-Authored-By: Claude Opus 4.8 --- static/assets/js/chat.js | 2 +- templates/pages/chat.html | 33 +++++++++++++++++++-------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/static/assets/js/chat.js b/static/assets/js/chat.js index f0ed084..33b4072 100644 --- a/static/assets/js/chat.js +++ b/static/assets/js/chat.js @@ -297,7 +297,7 @@ function chatBuildChannelRow(channelId, label, subLabel, opts) { opts = opts || {}; var row = document.createElement('div'); row.id = 'chat-channel-row-' + channelId; - row.style.cssText = 'display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0.625rem; border-bottom:1px solid var(--color-border); cursor:pointer;' + + row.style.cssText = 'display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0.75rem; border-bottom:1px solid var(--color-border); cursor:pointer;' + (channelId === chatCurrentChannelId ? ' background:hsl(0 72% 44% / 0.06);' : ''); row.onmouseover = function () { if (channelId !== chatCurrentChannelId) row.style.background = 'var(--color-muted)'; }; row.onmouseout = function () { if (channelId !== chatCurrentChannelId) row.style.background = ''; }; diff --git a/templates/pages/chat.html b/templates/pages/chat.html index cc0778c..524c6a0 100644 --- a/templates/pages/chat.html +++ b/templates/pages/chat.html @@ -13,20 +13,25 @@
-
- Особисті повідомлення - -
-
-
Завантаження…
-
-
- Канали -
-
-
Завантаження…
+
+ +
+ Особисті повідомлення + +
+
+
Завантаження…
+
+ +
+ Канали +
+
+
Завантаження…
+
+