Skip to content

Commit cf37444

Browse files
committed
Fixed table scrolling
1 parent 40ebad0 commit cf37444

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/webapp/app/components/code/TSQLResultsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ export const TSQLResultsTable = memo(function TSQLResultsTable({
942942
if (rows.length === 0) {
943943
return (
944944
<div
945-
className="h-full w-full overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600"
945+
className="h-full min-h-0 w-full overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600"
946946
style={{ position: "relative" }}
947947
>
948948
<table style={{ display: "grid" }}>
@@ -1027,7 +1027,7 @@ export const TSQLResultsTable = memo(function TSQLResultsTable({
10271027
return (
10281028
<div
10291029
ref={tableContainerRef}
1030-
className="h-full w-full overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600"
1030+
className="h-full min-h-0 w-full overflow-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600"
10311031
style={{ position: "relative" }}
10321032
>
10331033
<table style={{ display: "grid" }}>

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.query/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ export default function Page() {
560560
</Callout>
561561
)}
562562
<div className="h-full bg-charcoal-900 p-2">
563-
<Card className="max-h-full overflow-hidden p-0">
564-
<Card.Content className="max-h-full overflow-hidden p-0">
563+
<Card className="h-full overflow-hidden p-0">
564+
<Card.Content className="min-h-0 flex-1 overflow-hidden p-0">
565565
<TSQLResultsTable
566566
rows={results.rows}
567567
columns={results.columns}

0 commit comments

Comments
 (0)