chore: ignore editor width setting if window size is too small

This commit is contained in:
Aman Harwara
2024-02-26 20:40:41 +05:30
parent f9be8b3d03
commit 06ca2bdedb

View File

@@ -953,7 +953,7 @@ class NoteView extends AbstractComponent<NoteViewProps, State> {
id={ElementIds.EditorContent}
className={classNames(
ElementIds.EditorContent,
'z-editor-content overflow-auto [&>*]:mx-[var(--editor-margin)] [&>*]:max-w-[var(--editor-max-width)]',
'z-editor-content overflow-auto sm:[&>*]:mx-[var(--editor-margin)] sm:[&>*]:max-w-[var(--editor-max-width)]',
)}
style={
{