From 0713df99d6ed0df8828a3bc750d7adb31c24f511 Mon Sep 17 00:00:00 2001 From: Til Date: Thu, 14 May 2026 15:18:16 +0200 Subject: [PATCH] fix rcm and selection boxes on modals and headers --- copyparty/web/browser.html | 2 +- copyparty/web/browser.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 4d1c1e9d..419e0955 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -42,7 +42,7 @@
-
+

diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index fe89aac0..457a1ec0 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6134,7 +6134,7 @@ window.thegrid = (function () { gfiles.style.display = 'none'; gfiles.innerHTML = ( - '
' + + '
' + '' + '' + '' + @@ -10851,7 +10851,8 @@ var rcm = (function () { } ebi('wrap').oncontextmenu = function (e) { - r.show(e); + if (!e.target.closest('.normalrcm')) + r.show(e); }; menu.onblur = function () { setTimeout(r.hide) }; @@ -11084,7 +11085,7 @@ function reload_browser() { try{ if (e.button !== 0 && e.type !== 'touchstart') return; if (!thegrid.en || !treectl.dsel) return; - if (e.target.closest('#widget,#ops,.opview,.doc,#ggrid>a')) return; + if (e.target.closest('#widget,#ops,.opview,.doc,#ggrid>a,.modal,.normalrcm')) return; } catch(ex){ console.log(ex);