Skip to content

Commit 40ebad0

Browse files
committed
Working on fixing the Table scrolling
1 parent b40f998 commit 40ebad0

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

  • apps/webapp/app
    • components/primitives/charts
    • routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.query

apps/webapp/app/components/primitives/charts/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const CardHeader = ({ children }: { children: ReactNode }) => {
2121
);
2222
};
2323

24-
const CardContent = ({ children }: { children: ReactNode }) => {
25-
return <div className="px-2">{children}</div>;
24+
const CardContent = ({ children, className }: { children: ReactNode; className?: string }) => {
25+
return <div className={cn("px-2", className)}>{children}</div>;
2626
};
2727

2828
const CardAccessory = ({ children }: { children: ReactNode }) => {

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,16 @@ export default function Page() {
559559
. Specify them explicitly to include them.
560560
</Callout>
561561
)}
562-
<div className="min-h-0 flex-1 overflow-hidden">
563-
<TSQLResultsTable
564-
rows={results.rows}
565-
columns={results.columns}
566-
prettyFormatting={prettyFormatting}
567-
/>
562+
<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">
565+
<TSQLResultsTable
566+
rows={results.rows}
567+
columns={results.columns}
568+
prettyFormatting={prettyFormatting}
569+
/>
570+
</Card.Content>
571+
</Card>
568572
</div>
569573
</div>
570574
) : (

0 commit comments

Comments
 (0)