From f10487c5117ccc42062edeadfa317f16838fe66d Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 26 Jul 2023 05:31:37 -0400 Subject: [PATCH] MM-50460 : Remove max-width from AdvancedTextEditor (#23970) --- .../components/advanced_text_editor/advanced_text_editor.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/webapp/channels/src/components/advanced_text_editor/advanced_text_editor.tsx b/webapp/channels/src/components/advanced_text_editor/advanced_text_editor.tsx index cdea3f1660..2178fba781 100644 --- a/webapp/channels/src/components/advanced_text_editor/advanced_text_editor.tsx +++ b/webapp/channels/src/components/advanced_text_editor/advanced_text_editor.tsx @@ -366,7 +366,6 @@ const AdvanceTextEditor = ({ if (!message) { // if we do not have a message we can just render the default state - input.style.maxWidth = `${maxWidth}px`; setShowFormattingSpacer(false); return; } @@ -377,10 +376,8 @@ const AdvanceTextEditor = ({ const currentWidth = width + inputPaddingX; if (currentWidth >= maxWidth) { - input.style.maxWidth = '100%'; setShowFormattingSpacer(true); } else { - input.style.maxWidth = `${maxWidth}px`; setShowFormattingSpacer(false); } }, [message, input]);