Skip to content

Commit 379be3f

Browse files
committed
Fix CSS for modal image when the image is smaller
1 parent 47a2675 commit 379be3f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎assets/css/gallerydeluxe/styles.css‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@
2929

3030
/* Modal Content (image) */
3131
.gd-modal-content {
32-
position: absolute;
33-
display: block;
34-
overflow: hidden;
35-
object-fit: contain;
3632
max-width: 100%;
3733
max-height: 100%;
34+
bottom: 0;
35+
left: 0;
36+
margin: auto;
37+
overflow: auto;
38+
position: fixed;
39+
right: 0;
40+
top: 0;
41+
object-fit: contain;
3842
}
3943

4044
.gd-modal-content.gd-modal-thumbnail {

0 commit comments

Comments
 (0)