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;