MM-50460 : Remove max-width from AdvancedTextEditor (#23970)
Этот коммит содержится в:
коммит произвёл
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]);
|
||||
|
||||
Ссылка в новой задаче
Block a user