From 7994a02bb16be300722bd5c08ec8bf35eb764f31 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 10:16:21 +0200 Subject: [PATCH] =?UTF-8?q?cleanup:=20.is-hidden=20utility=20=E2=80=94=20r?= =?UTF-8?q?eplaces=203=20toggle-display=20patterns=20across=20queue=20+=20?= =?UTF-8?q?streamers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three runtime-toggled elements were each using a slightly different inline display value to flip between visible/hidden: - vodFilterClearBtn: button, .style.display = '' / 'none' - btnMergeGroup: button, .style.display = '' / 'none' - vodBulkBar: div, .style.display = 'flex' / 'none' Plus each carried an inline style="display:none;" in HTML to start hidden. Added a single .is-hidden utility class (display:none !important) that hides any element regardless of its natural display type, and: - HTML now uses class="... is-hidden" instead of style="display:none" - JS toggles with classList.toggle('is-hidden', !shouldShow) instead of poking at .style.display - .vod-bulk-bar gets an explicit display:flex in its base rule (was implicit via the JS flip; now declared) Comment on .vod-bulk-bar animation updated since the trigger is now ".is-hidden removed" rather than "JS sets display:flex". Net: 3 inline style="display:none" attrs gone from HTML, 4 .style.display assignments gone from TS. Single utility class handles the same job for all three plus any future show/hide toggle. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 6 +++--- src/renderer-queue.ts | 4 ++-- src/renderer-streamers.ts | 4 ++-- src/styles.css | 12 +++++++++++- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index 006577b..e850589 100644 --- a/src/index.html +++ b/src/index.html @@ -234,7 +234,7 @@
- +
@@ -263,7 +263,7 @@
- +