Skip to content

Commit 8cccfd2

Browse files
authored
hotfix to contain thumbnail images in page div (#2970)
1 parent e24d8d0 commit 8cccfd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ClickToZoomCustom.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
.thumbnailImage {
33
margin-top: 1em;
44
max-height: 50vh;
5+
max-width: 100%;
6+
width: auto;
7+
height: auto;
58
cursor: zoom-in;
69
display: block;
710
margin-left: auto;
811
margin-right: auto;
912
transition: opacity 0.2s ease;
10-
max-width: none !important; /* Override global article * styles */
13+
object-fit: contain;
1114
}
1215

1316
.thumbnailImage:hover {

0 commit comments

Comments
 (0)