Skip to content

Commit c332a4a

Browse files
committed
Lightbox: Fix live photo position for RTL languages #1307 photoprism#3372 photoprism#4698
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent b6cd4b7 commit c332a4a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/src/component/lightbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export default {
265265
escKey: false,
266266
pinchToClose: false,
267267
counter: false,
268-
trapFocus: false,
268+
trapFocus: true,
269269
returnFocus: false,
270270
allowPanToNext: false,
271271
closeOnVerticalDrag: false,

frontend/src/css/lightbox.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575

7676
.pswp__html,
7777
.pswp__media {
78-
position: relative;
78+
position: absolute;
79+
left: 0;
80+
top: 0;
7981
max-width: 100vw;
8082
max-height: 100vh;
8183
}

0 commit comments

Comments
 (0)