From 6eda4f684973c43a20e39836d34f670062fd7aed Mon Sep 17 00:00:00 2001 From: HWFord Date: Thu, 15 Dec 2022 12:08:50 +0100 Subject: [PATCH] (cp 5e4739b) related #1724 center svg if svg is portrait size --- admin/themes/default/theme.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index 38783d704..179540e55 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -5635,6 +5635,15 @@ a.group_users { opacity:1; -webkit-transition:opacity 200ms ease; transition:opacity 200ms ease; + max-width: 100%; +} + +.preview-box.icon-zoom-in img.svg-image { + height: 100%; + top: 50%; + position: absolute; + left: 50%; + transform: translate(-50%, -50%); } .preview-box.icon-zoom-in:hover img { opacity:0.5;