From 782e2f1de305bf06944b87eace8ad2e6429256bb Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 17 Aug 2025 10:42:45 +0000 Subject: [PATCH] bbox: stay fullscreen --- copyparty/web/baguettebox.js | 3 ++- copyparty/web/browser.css | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index adcf3239..9a298e7b 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -48,6 +48,7 @@ window.baguetteBox = (function () { var onFSC = function (e) { isFullscreen = !!document.fullscreenElement; + clmod(document.documentElement, 'bb_fsc', isFullscreen); }; var overlayClickHandler = function (e) { @@ -402,7 +403,7 @@ window.baguetteBox = (function () { if (isFullscreen) document.exitFullscreen(); else - (vid() || ebi('bbox-overlay')).requestFullscreen(); + ebi('bbox-overlay').requestFullscreen(); } catch (ex) { if (IPHONE) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index f5f472a5..8b87d4c2 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -2126,6 +2126,13 @@ html.noscroll .sbar::-webkit-scrollbar { vertical-align: middle; transition: transform .23s, left .23s, top .23s, width .23s, height .23s; } +html.bb_fsc .full-image img, +html.bb_fsc .full-image video { + max-height: 100%; +} +html.bb_fsc figcaption { + display: none; +} .full-image img.nt, .full-image video.nt { transition: none;