From 332fe1c125c546c10f25ad33d4d0471f78cc6a23 Mon Sep 17 00:00:00 2001 From: AlexsandrSnytkin Date: Fri, 18 Sep 2026 17:26:36 +0700 Subject: [PATCH] fix(ui): remove stale card heights --- ui_server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui_server.py b/ui_server.py index 326302e..d4e9f42 100644 --- a/ui_server.py +++ b/ui_server.py @@ -2034,10 +2034,15 @@ HTML = """ } function fitConfigBlockContent(block) { if (!block || configBlockState(block) || block._configManualHeight) return false; + const entry = configLayout[block.dataset.section]; + if (block.style.height && block.style.height !== 'auto') { + block.style.height = 'auto'; + if (entry) { delete entry.height; delete entry.manualHeight; } + return true; + } const contentHeight = block.scrollHeight; if (!contentHeight || block.offsetHeight <= contentHeight + 120) return false; block.style.height = 'auto'; - const entry = configLayout[block.dataset.section]; if (entry && Object.prototype.hasOwnProperty.call(entry, 'height')) { delete entry.height; delete entry.manualHeight;