Skip to content

Commit b771e86

Browse files
committed
Viewer: Replace me-1 and ms-1 padding classes with custom button styles
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent b25209f commit b771e86

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

frontend/src/component/lightbox.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ export default {
10771077
// Add close button.
10781078
lightbox.pswp.ui.registerElement({
10791079
name: "close-button",
1080-
className: "pswp__button--close-button ms-1", // Sets the icon style/size in lightbox.css.
1080+
className: "pswp__button--close-button", // Sets the icon style/size in lightbox.css.
10811081
title: this.$gettext("Close"),
10821082
ariaLabel: this.$gettext("Close"),
10831083
order: 1,
@@ -1218,7 +1218,7 @@ export default {
12181218
if (this.canDownload) {
12191219
lightbox.pswp.ui.registerElement({
12201220
name: "menu-button",
1221-
className: "pswp__button--menu-button pswp__button--mdi me-1", // Sets the icon style/size in lightbox.css.
1221+
className: "pswp__button--menu-button pswp__button--mdi", // Sets the icon style/size in lightbox.css.
12221222
ariaLabel: this.$gettext("More options"),
12231223
order: 10,
12241224
isButton: true,

frontend/src/css/lightbox.css

+8
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,14 @@
360360
height: 20px;
361361
}
362362

363+
.pswp__top-bar .pswp__button--close-button {
364+
margin-inline-start: 4px;
365+
}
366+
367+
.pswp__top-bar .pswp__button--menu-button {
368+
margin-inline-end: 4px;
369+
}
370+
363371
.is-ltr .pswp__preloader {
364372
margin-left: auto;
365373
margin-right: 0;

0 commit comments

Comments
 (0)