Fixed image preview

This commit is contained in:
Thomas Mathews 2023-01-20 17:17:04 -08:00
parent 8ddeca2227
commit 8d66285ee8

View file

@ -414,10 +414,17 @@ dialog header label {
dialog header button {
font-size: 24px;
}
dialog > img {
/* fix for media preview */
#media-preview {
height: 100%;
}
#media-preview > img {
max-width: 100%;
max-height: 100%;
display: block;
position: relative;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
dialog > .container {
display: flex;