fix(node-modal): cap height at 90vh with scroll

Modal grew taller than viewport when icon picker expanded, hiding
header and footer buttons. Constrain DialogContent to 90vh and add
overflow-y-auto so all controls stay reachable.
This commit is contained in:
Pouzor
2026-05-11 16:54:33 +02:00
parent a66e6aa906
commit ff02f3b5db
+1 -1
View File
@@ -95,7 +95,7 @@ export function NodeModal({ open, onClose, onSubmit, initial, title = 'Add Node'
return ( return (
<Dialog open={open} onOpenChange={(o) => !o && onClose()}> <Dialog open={open} onOpenChange={(o) => !o && onClose()}>
<DialogContent className="bg-[#161b22] border-[#30363d] text-foreground max-w-md"> <DialogContent className="bg-[#161b22] border-[#30363d] text-foreground max-w-md max-h-[90vh] overflow-y-auto">
<DialogHeader> <DialogHeader>
<DialogTitle className="text-sm font-semibold">{title}</DialogTitle> <DialogTitle className="text-sm font-semibold">{title}</DialogTitle>
</DialogHeader> </DialogHeader>