Skip to content

Commit e0618f0

Browse files
committed
Scope the wider processing dialog to the Models tab
The canvas needed more room, but the width lives on the shared DialogContent, so the Batch tab — untouched by this PR — inherited it and rendered its two-column layout with unused horizontal space. Widen only while the Models tab is active.
1 parent 88ea7c3 commit e0618f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/geolibre-desktop/src/components/processing/ModelBuilderDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export function ModelBuilderDialog({ mapControllerRef }: ModelBuilderDialogProps
179179
if (!next) setOpen(false);
180180
}}
181181
>
182-
<DialogContent className="max-w-5xl">
182+
{/* Only the Models tab needs the extra width for the workflow canvas; the
183+
Batch tab keeps its original two-column width. */}
184+
<DialogContent className={mode === "models" ? "max-w-5xl" : "max-w-3xl"}>
183185
<DialogHeader>
184186
<DialogTitle>{t("processing.modelBuilder.title")}</DialogTitle>
185187
<DialogDescription>{t("processing.modelBuilder.description")}</DialogDescription>

0 commit comments

Comments
 (0)