Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix zoom button left spacing for single-photo albums

Anand Baburajanf380d2c81445
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index cc1d682584..2d999ec06d 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -120,6 +120,17 @@
transform: scale(0.85);
}
+/* When counter is hidden (single photo), give zoom button the left margin */
+.pswp-ente.pswp--one-slide .pswp__top-bar .pswp__button--zoom {
+ margin-left: 4px;
+}
+
+@media (width >= 450px) {
+ .pswp-ente.pswp--one-slide .pswp__top-bar .pswp__button--zoom {
+ margin-left: 28px;
+ }
+}
+
.pswp-ente .pswp__preloader {
transform: translate(-2px, 2px);
}