Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix top gradient not starting at viewport top in non-maximized desktop window

Anand Baburajan78325173d1a1
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index d13a041d0f..441afadc5a 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -21,10 +21,12 @@
.pswp-ente .pswp__top-bar::before {
content: "";
position: absolute;
- top: 0;
+ /* Offset to start at the actual viewport top despite top-bar being shifted
+ down for the desktop title bar. See line 10-12. */
+ top: calc(env(titlebar-area-height, 0px) * -0.4);
left: 0;
right: 0;
- height: 125px;
+ height: calc(125px + env(titlebar-area-height, 0px) * 0.4);
background: linear-gradient(
to top,
transparent 0%,