Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

More robust check

Manav Rathiaabaa89add74
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;
}