Set max height of media item in grid (#15066)

* Set max height of media item in grid to avoid portrait images of take up much of height

* Style image preview in for SVG

* Set max height instead
This commit is contained in:
Bjarne Fyrstenborg
2023-10-31 18:23:15 +01:00
committed by GitHub
parent 8e609af901
commit b1b48ec5cd
2 changed files with 2 additions and 0 deletions

View File

@@ -282,6 +282,7 @@ Use this directive to generate a thumbnail grid of media items.
var flexStyle = {
"flex": flex + " 1 " + imageMinFlexWidth + "px",
"max-width": mediaItem.width + "px",
"max-height": itemMaxHeight + "px",
"min-width": itemMinWidth + "px",
"min-height": itemMinHeight + "px"
};

View File

@@ -5,5 +5,6 @@
img {
width: 100%;
max-height: 50vh;
}
}