fix: prevent pipeline preview dropzone from clipping at bottom

Dropzone had a hardcoded min-h-[400px] that overflowed the preview
panel's h-[38%] constraint. Add compact prop for constrained contexts.
This commit is contained in:
ashim-hq
2026-04-23 22:08:20 +08:00
parent be4155d257
commit b03c428e4f
2 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -810,12 +810,13 @@ export function AutomatePage() {
)}
{!hasFile && (
<div className="flex flex-col items-center gap-3 w-full max-w-md">
<div className="flex flex-col items-center gap-3 w-full max-w-md h-full min-h-0">
<Dropzone
onFiles={handleFiles}
accept="image/*"
multiple
currentFiles={files}
compact
/>
<button
type="button"