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 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]);