From 4dfd908a9a9a3f94aa2f3ba82389ff7d0c8220ac Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Tue, 21 Jul 2026 20:00:56 +0100 Subject: [PATCH] style(table): move the column picker into the table header corner The show/hide-columns gear only makes sense in table view but sat in the global toolbar (needing applyColsWrapVisibility to hide it elsewhere). Build it inside the actions-column header cell in renderTable instead, with inline handlers (recreated each render, so no dependence on once-wired listeners on a static node). Removed #colsWrap from the toolbar + the now-obsolete applyColsWrapVisibility and its callers; kept the menu id so renderTableColsMenu still populates it, and a live-queried outside-click close. Added .cols-wrap CSS (was an inline position:relative on the old node). Co-Authored-By: Claude Opus 4.8 --- css/style.css | 5 +++++ index.html | 6 ------ js/app.js | 60 ++++++++++++++++++++++++++++++--------------------- 3 files changed, 40 insertions(+), 31 deletions(-) diff --git a/css/style.css b/css/style.css index 9bb1ed9..3bb2f3b 100644 --- a/css/style.css +++ b/css/style.css @@ -1933,6 +1933,11 @@ input[type="range"]::-webkit-slider-thumb { } /* Table column picker dropdown — only rendered in table view. */ +.cols-wrap { + position: relative; /* anchor for the absolutely-positioned menu */ + display: inline-flex; + vertical-align: middle; +} .cols-menu { position: absolute; top: calc(100% + 4px); diff --git a/index.html b/index.html index 9923a6a..ead01ec 100644 --- a/index.html +++ b/index.html @@ -286,12 +286,6 @@ -