From b4775a0d500fe0d145cd161283fa83998143579d Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 1 Sep 2021 17:35:00 +0530 Subject: [PATCH] fix file upload preview size --- customize.dist/src/less2/include/modals-ui-elements.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customize.dist/src/less2/include/modals-ui-elements.less b/customize.dist/src/less2/include/modals-ui-elements.less index 3e449d495..94ec06cc0 100644 --- a/customize.dist/src/less2/include/modals-ui-elements.less +++ b/customize.dist/src/less2/include/modals-ui-elements.less @@ -275,8 +275,14 @@ } #cp-upload-preview-container { max-width: 100%; + max-height: 300px; + overflow: auto; media-tag { max-width: 100%; + iframe { + // pdfs don't take the full width unless we tell them to + width: 100%; + } & > * { max-width: 100%; }