From 87657a18f15f87da8d15764cd4d16a294663cd3f Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Fri, 15 Nov 2024 14:10:47 +0100 Subject: [PATCH] apply max width only to sanitized p blocks, not column default --- public/js/components/Cis/Cms/Content_types/General.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/components/Cis/Cms/Content_types/General.js b/public/js/components/Cis/Cms/Content_types/General.js index 31c214368..8c1ab5cf3 100644 --- a/public/js/components/Cis/Cms/Content_types/General.js +++ b/public/js/components/Cis/Cms/Content_types/General.js @@ -45,6 +45,7 @@ export default { p.forEach(p => { p.style.setProperty('word-wrap', 'break-word'); p.style.setProperty('white-space', 'normal'); + p.style.setProperty('max-width', '400px'); }) } }, @@ -61,8 +62,7 @@ export default { columnDefaults: { formatter: "html", resizable: true, - minWidth: "100px", - maxWidth: "400px" + minWidth: "100px" } }) }