Skip to content

Commit 9a4d5d9

Browse files
authored
UX: prevent lightbox counter wrapping (#36245)
Due to limited space in the lightbox header, the counter text can wrap to the next line on mobile. Note: the gap between the counter and buttons is taken up by the loading animation. Making a small adjustment to the button size allows for better layout with our current buttons. ### Before <img width="388" height="81" alt="Screenshot 2025-11-26 at 1 21 46 PM" src="https://github.com/user-attachments/assets/de405c36-0cd9-427e-9482-7f082b935a47" /> ### After <img width="390" height="68" alt="Screenshot 2025-11-26 at 1 21 23 PM" src="https://github.com/user-attachments/assets/eeb06ac0-d2e7-4c05-8088-d8b2799aa5ed" />
1 parent 1172744 commit 9a4d5d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/assets/stylesheets/common/base/lightbox.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@
200200
opacity: 1;
201201
}
202202

203+
.pswp .pswp__button {
204+
width: 45px;
205+
}
206+
207+
.pswp .pswp__icn {
208+
left: 6px;
209+
}
210+
203211
.pswp__button--original-image svg,
204212
.pswp__button--image-info svg {
205213
padding: 0.32em;

0 commit comments

Comments
 (0)