From aabaa89add7485f200b29a6d60976db43ca2e28b Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 8 Apr 2025 16:52:30 +0530 Subject: [PATCH] More robust check --- web/apps/photos/src/styles/photoswipe.css | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css index a0bc711704..3a5016d21c 100644 --- a/web/apps/photos/src/styles/photoswipe.css +++ b/web/apps/photos/src/styles/photoswipe.css @@ -351,15 +351,9 @@ media-settings-menu { z-index: 1; } -/* Hide the caption when hovering over the video controls since they occupy - similar real estate */ -body:has( - media-control-bar:hover, - media-settings-menu:hover, - media-settings-menu:focus, - media-settings-menu:focus-visible, - media-settings-menu:focus-within - ) { +/* Hide the caption when hovering over the video controls (and when the settings + menu is open) since they occupy similar real estate as the caption. */ +body:has(media-control-bar:hover, media-settings-menu:not([hidden])) { & .pswp-ente .pswp__caption { display: none; }