Skip to content

Commit de9c2de

Browse files
committed
More consistent button reveals
1 parent 1944a8a commit de9c2de

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
CalendarIcon,
55
ClipboardIcon,
66
PencilIcon,
7+
PencilSquareIcon,
78
} from "@heroicons/react/20/solid";
89
import type { OutputColumnMetadata } from "@internal/clickhouse";
910
import { DialogClose } from "@radix-ui/react-dialog";
@@ -978,19 +979,19 @@ function QueryTitle({
978979

979980
return (
980981
<>
981-
<span className="flex items-center gap-1">
982+
<span className="group flex items-center gap-1">
982983
{title ?? "Results"}
983984
{onRename && title && (
984-
<button
985+
<Button
986+
variant="minimal/small"
987+
LeadingIcon={PencilSquareIcon}
988+
leadingIconClassName="text-text-bright"
989+
className="opacity-0 transition-opacity group-hover:opacity-100"
985990
onClick={() => {
986991
setRenameValue(title);
987992
setIsDialogOpen(true);
988993
}}
989-
className="rounded p-0.5 text-text-dimmed hover:bg-charcoal-700 hover:text-text-bright"
990-
title="Rename chart"
991-
>
992-
<PencilIcon className="size-3.5" />
993-
</button>
994+
/>
994995
)}
995996
</span>
996997
{onRename && (

0 commit comments

Comments
 (0)