Skip to content

Commit 37bcdab

Browse files
authored
Merge pull request #182 from chriscors/fix/typegen-fields-dialog-height
2 parents 9aaa34d + 08b6541 commit 37bcdab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/typegen/web/src/components/metadata-fields-dialog/FieldsDataGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ export function FieldsDataGrid({ table, isLoading, isError, error, open }: Field
7373
table={table}
7474
tableLayout={{ width: "auto", headerSticky: true }}
7575
>
76-
<DataGridContainer border={true} className="h-full">
76+
<DataGridContainer border={true}>
7777
<div
7878
className="overflow-auto"
7979
ref={tableContainerRef}
8080
style={{
8181
contain: "strict",
82-
height: "100%",
82+
height: "calc(90vh - 280px)", // Adjust based on dialog header and search input height
8383
}}
8484
>
8585
<table className="w-full border-separate border-spacing-0">

packages/typegen/web/src/components/metadata-fields-dialog/TableOptionsForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function TableOptionsForm({
4848
const isDisabled = currentTableIndex < 0 || configType !== "fmodata" || !open;
4949

5050
return (
51-
<div className="shrink-0 border-border border-t pt-4">
51+
<div className="shrink-0 pt-3">
5252
<div className="flex gap-4">
5353
<FormField
5454
control={control}

0 commit comments

Comments
 (0)