From d7e4079c4d8f10969c7d486b99fb353c2bcc61c0 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Thu, 4 Jun 2026 10:13:10 +1200 Subject: [PATCH] Fix sidebar button overlay --- app/public/photoswipe-overrides.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/public/photoswipe-overrides.css b/app/public/photoswipe-overrides.css index f4cf39b..cdce3e3 100644 --- a/app/public/photoswipe-overrides.css +++ b/app/public/photoswipe-overrides.css @@ -96,6 +96,21 @@ html.pswp-no-arrows .pswp__button--arrow { display: none !important; } +/* When the info sidebar is open on desktop, both the top toolbar (which is + absolutely positioned at right: 0) and the next-arrow button (right: 0) + would sit underneath the 360px sidebar. Shift them inward so they stay + visible inside the now-narrower slide viewport. Mobile is unaffected + because the sidebar there is a bottom sheet, not a right-side dock. */ +@media (min-width: 641px) { + html.ipp-sidebar-open .pswp__top-bar { + right: 360px; + width: auto; + } + html.ipp-sidebar-open .pswp__button--arrow--next { + right: 360px; + } +} + @media (max-width: 640px) { html.pswp-no-mobile-arrows .pswp__button--arrow { display: none !important;