Skip to content

Commit 4c92102

Browse files
committed
Display tables at the top of the full screen dialogue
1 parent 7ca5ebe commit 4c92102

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

apps/webapp/app/components/metrics/QueryWidget.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,12 @@ function QueryWidgetBody({
359359
sorting={config.sorting}
360360
/>
361361
<Dialog open={isFullscreen} onOpenChange={setIsFullscreen}>
362-
<DialogContent fullscreen>
363-
<DialogHeader>{title}</DialogHeader>
364-
<div className="h-full min-h-0 w-full flex-1 overflow-hidden pt-4">
362+
<DialogContent
363+
fullscreen
364+
className="flex flex-col gap-0 bg-background-bright px-0 pb-0"
365+
>
366+
<DialogHeader className="px-4">{title}</DialogHeader>
367+
<div className="min-h-0 w-full flex-1 pt-2.5">
365368
<TSQLResultsTable
366369
rows={data.rows}
367370
columns={data.columns}
@@ -385,9 +388,9 @@ function QueryWidgetBody({
385388
onViewAllLegendItems={() => setIsFullscreen(true)}
386389
/>
387390
<Dialog open={isFullscreen} onOpenChange={setIsFullscreen}>
388-
<DialogContent fullscreen>
391+
<DialogContent fullscreen className="flex flex-col bg-background-bright">
389392
<DialogHeader>{title}</DialogHeader>
390-
<div className="h-full min-h-0 w-full flex-1 overflow-hidden pt-4">
393+
<div className="min-h-0 w-full flex-1 overflow-hidden pt-4">
391394
<QueryResultsChart
392395
rows={data.rows}
393396
columns={data.columns}
@@ -412,9 +415,9 @@ function QueryWidgetBody({
412415
isLoading={showLoading}
413416
/>
414417
<Dialog open={isFullscreen} onOpenChange={setIsFullscreen}>
415-
<DialogContent fullscreen>
418+
<DialogContent fullscreen className="flex flex-col bg-background-bright">
416419
<DialogHeader>{title}</DialogHeader>
417-
<div className="flex h-full min-h-0 w-full flex-1 items-center justify-center pt-4">
420+
<div className="flex min-h-0 w-full flex-1 items-center justify-center pt-4">
418421
<BigNumberCard
419422
rows={data.rows}
420423
columns={data.columns}

0 commit comments

Comments
 (0)