File tree Expand file tree Collapse file tree
apps/webapp/app/components/query Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 CalendarIcon ,
55 ClipboardIcon ,
66 PencilIcon ,
7+ PencilSquareIcon ,
78} from "@heroicons/react/20/solid" ;
89import type { OutputColumnMetadata } from "@internal/clickhouse" ;
910import { 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 && (
You can’t perform that action at this time.
0 commit comments