Skip to content

armgit / ente

Public Imported from GitHub
0

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

Top bar mobile

Manav Rathibfc0f785bce0
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.css
index 366e652a2c..ae091f6cf3 100644
--- a/web/apps/photos/src/styles/global.css
+++ b/web/apps/photos/src/styles/global.css
@@ -182,7 +182,7 @@ body {
display: initial;
}
-/* Transfrom the built in controls to better fit our requirements */
+/* Transform the built in controls to better fit our requirements */
.pswp-ente .pswp__counter {
margin-top: 17.5px;
@@ -227,6 +227,36 @@ body {
fill: rgba(255 255 255 / 0.6);
}
+/* Make the controls fit the top bar on mobile sized screens */
+@media (width < 450px) {
+ .pswp__button {
+ width: 44px;
+ }
+
+ .pswp-ente .pswp__counter {
+ margin-inline-start: 10px;
+ margin-inline-end: 0;
+ }
+
+ .pswp-ente .pswp__button--close {
+ margin-right: -2px;
+ }
+}
+
+@media (width < 350px) {
+ .pswp__button {
+ width: 42px;
+ }
+
+ .pswp-ente .pswp__counter {
+ margin-inline-start: 4px;
+ }
+
+ .pswp-ente .pswp__button--close {
+ margin-right: -4px;
+ }
+}
+
/* 4 line caption */
.pswp-ente .pswp__caption {