Skip to content

Commit da20b2b

Browse files
committed
Unify the Add to dashboard buttons
1 parent dc52750 commit da20b2b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

apps/webapp/app/components/query/QueryEditor.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export function QueryEditor({
708708
</div>
709709
) : null}
710710
</ClientTabsList>
711-
<ClientTabsContent value="table" className="min-h-0 overflow-y-hidden">
711+
<ClientTabsContent value="table" className="m-0 min-h-0 overflow-y-hidden">
712712
{isLoading ? (
713713
<div className="flex items-center gap-2 p-4 text-sm text-text-dimmed">
714714
<Spinner className="size-4" />
@@ -832,11 +832,10 @@ export function QueryEditor({
832832
accessory={
833833
mode.type === "standalone" ? (
834834
<Button
835-
variant="minimal/small"
836-
LeadingIcon={BookmarkIcon}
835+
variant="primary/small"
837836
onClick={() => setIsSaveDialogOpen(true)}
838837
>
839-
Save to dashboard
838+
Add to dashboard
840839
</Button>
841840
) : save ? (
842841
save(saveData)
@@ -881,11 +880,10 @@ export function QueryEditor({
881880
accessory={
882881
mode.type === "standalone" ? (
883882
<Button
884-
variant="minimal/small"
885-
LeadingIcon={BookmarkIcon}
883+
variant="primary/small"
886884
onClick={() => setIsSaveDialogOpen(true)}
887885
>
888-
Save to dashboard
886+
Add to dashboard
889887
</Button>
890888
) : save ? (
891889
save(saveData)
@@ -1325,10 +1323,7 @@ function BigNumberConfigPanel({
13251323
const availableColumns = config.aggregation === "count" ? allColumns : numericColumns;
13261324

13271325
return (
1328-
<div className="flex h-full flex-col gap-4 overflow-y-auto p-3">
1329-
<Paragraph variant="small" className="font-medium text-text-bright">
1330-
Big Number Configuration
1331-
</Paragraph>
1326+
<div className="flex h-full flex-col gap-2 overflow-y-auto p-2">
13321327
<div className="flex flex-col gap-3">
13331328
<div className="flex flex-col gap-1">
13341329
<Paragraph variant="extra-small" className="text-text-dimmed">

0 commit comments

Comments
 (0)