From c61f6164f24a80b5403d7b153d9d0ce23a28f071 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Wed, 13 May 2026 18:45:48 +0200 Subject: [PATCH] auto stop file column picking when dropdown closed, hide column hide buttons --- copyparty/web/browser.css | 4 ++-- copyparty/web/browser.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index a561350f..e83f0b07 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -2249,7 +2249,7 @@ html.b .btn { white-space: nowrap; } #files th:hover .cfg { - display: block; + display: none; width: 1em; border-radius: var(--radius); margin: -1.2em auto 0 auto; @@ -3517,7 +3517,7 @@ details .setting { details { border: var(--bg-u3) solid 1px; border-radius: var(--radius); - margin: .3em 0; + margin: .3em; } details:not(.open) .setting { display: none; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 3cd73f8e..c7804052 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6186,6 +6186,10 @@ window.thegrid = (function () { ebi('h_hidden').onclick = function () { clmod(this.parentElement, 'open', 't'); + if(!clgot(this.parentElement, 'open') && filecols.picking){ + filecols.unpick(); + clmod(ebi('hcolsh'), 'on', r.picking) + } } var r = {