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
This commit is contained in:
parent
4f33b854dd
commit
2861439ca0
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue