From d1dc4afa614a74ab45359c3b79bf7895c38a745f Mon Sep 17 00:00:00 2001 From: AIC BV <89913092+AIC-BV@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:57:46 +0200 Subject: [PATCH] Fix fileupload thumbnail preview v2 As discussed on https://github.com/wintercms/winter/pull/985 --- .../assets/less/fileupload.imagemulti.less | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/backend/formwidgets/fileupload/assets/less/fileupload.imagemulti.less b/modules/backend/formwidgets/fileupload/assets/less/fileupload.imagemulti.less index 734b8b87d1..c4fec162e4 100644 --- a/modules/backend/formwidgets/fileupload/assets/less/fileupload.imagemulti.less +++ b/modules/backend/formwidgets/fileupload/assets/less/fileupload.imagemulti.less @@ -34,20 +34,24 @@ .icon-container { border-right: 1px solid #f6f8f9; float: left; - display: inline-block; + // display: inline-block; overflow: hidden; width: 75px; height: 75px; + display: flex; + align-items: center; + justify-content: center; + i { font-size: 35px; } &.image img { .border-left-radius(3px); - width: 100%; - height: 100%; - object-fit: cover; + width: auto; + height: auto; + max-height: 100%; } }