MM-50460 : Remove max-width from AdvancedTextEditor (#23970)

Этот коммит содержится в:
Harrison Healey
2023-07-26 05:31:37 -04:00
коммит произвёл GitHub
родитель 12c829032f
Коммит f10487c511

Просмотреть файл

@@ -366,7 +366,6 @@ const AdvanceTextEditor = ({
if (!message) { if (!message) {
// if we do not have a message we can just render the default state // if we do not have a message we can just render the default state
input.style.maxWidth = `${maxWidth}px`;
setShowFormattingSpacer(false); setShowFormattingSpacer(false);
return; return;
} }
@@ -377,10 +376,8 @@ const AdvanceTextEditor = ({
const currentWidth = width + inputPaddingX; const currentWidth = width + inputPaddingX;
if (currentWidth >= maxWidth) { if (currentWidth >= maxWidth) {
input.style.maxWidth = '100%';
setShowFormattingSpacer(true); setShowFormattingSpacer(true);
} else { } else {
input.style.maxWidth = `${maxWidth}px`;
setShowFormattingSpacer(false); setShowFormattingSpacer(false);
} }
}, [message, input]); }, [message, input]);