From 8d66285ee838ab5f508b19e43bc2271c1da93817 Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Fri, 20 Jan 2023 17:17:04 -0800 Subject: [PATCH] Fixed image preview --- css/styles.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/css/styles.css b/css/styles.css index 45833c2..473416b 100644 --- a/css/styles.css +++ b/css/styles.css @@ -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;