From 2861439ca08235ed8131780afa75d3ba1c86f1b6 Mon Sep 17 00:00:00 2001 From: Luis Novo Date: Sun, 1 Feb 2026 16:54:09 -0300 Subject: [PATCH] fix: prevent note editor from expanding beyond dialog bounds (#528) Add max-height and overflow constraints to MarkdownEditor component to prevent the textbox from expanding indefinitely when typing. The editor now scrolls internally instead of pushing the save button out of view. - Added max-h-[500px] to limit editor height - Added overflow-hidden to container - Made internal editor content scrollable with overflow-y-auto --- .../app/(dashboard)/notebooks/components/NoteEditorDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx b/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx index 63aca5a..b787ebe 100644 --- a/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx +++ b/frontend/src/app/(dashboard)/notebooks/components/NoteEditorDialog.tsx @@ -162,7 +162,7 @@ export function NoteEditorDialog({ open, onOpenChange, notebookId, note }: NoteE height={420} placeholder={t.sources.writeNotePlaceholder} className={cn( - "w-full h-full min-h-[420px] [&_.w-md-editor]:!static [&_.w-md-editor]:!w-full [&_.w-md-editor]:!h-full", + "w-full h-full min-h-[420px] max-h-[500px] overflow-hidden [&_.w-md-editor]:!static [&_.w-md-editor]:!w-full [&_.w-md-editor]:!h-full [&_.w-md-editor-content]:overflow-y-auto", !isEditorFullscreen && "rounded-md border" )} />