Skip to content

Commit

Permalink
Merge pull request #2953 from quantified-uncertainty/no-settings-tooltip
Browse files Browse the repository at this point in the history
Remove broken TextTooltip from value menu icon
  • Loading branch information
berekuk authored Jan 10, 2024
2 parents 59c108c + 0fa91af commit 918bab2
Showing 1 changed file with 32 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
DropdownMenuActionItem,
DropdownMenuHeader,
FocusIcon,
TextTooltip,
useCloseDropdown,
} from "@quri/ui";

Expand Down Expand Up @@ -148,40 +147,38 @@ export const SquiggleValueMenu: FC<{
const hasLocalSettings = useHasLocalSettings(value.context.path);

return (
<TextTooltip text="Settings" placement="bottom-end">
<Dropdown
render={() => (
<DropdownMenu>
{widgetHeading && (
<DropdownMenuHeader>{widgetHeading}</DropdownMenuHeader>
)}
<FindInEditorItem value={value} />
<FocusItem value={value} />
<SetChildrenCollapsedStateItem
value={value}
title="Collapse Children"
collapsed={true}
/>
<SetChildrenCollapsedStateItem
value={value}
title="Expand Children"
collapsed={false}
/>
{widget?.Menu && <widget.Menu value={value} />}
<LogToConsoleItem value={value} />
</DropdownMenu>
)}
>
<Cog8ToothIcon
size={16}
className={clsx(
"cursor-pointer transition",
hasLocalSettings
? "text-indigo-300 hover:!text-indigo-500 group-hover:text-indigo-400"
: "opacity-0 hover:!text-stone-500 group-hover:text-stone-400 group-hover:opacity-100"
<Dropdown
render={() => (
<DropdownMenu>
{widgetHeading && (
<DropdownMenuHeader>{widgetHeading}</DropdownMenuHeader>
)}
/>
</Dropdown>
</TextTooltip>
<FindInEditorItem value={value} />
<FocusItem value={value} />
<SetChildrenCollapsedStateItem
value={value}
title="Collapse Children"
collapsed={true}
/>
<SetChildrenCollapsedStateItem
value={value}
title="Expand Children"
collapsed={false}
/>
{widget?.Menu && <widget.Menu value={value} />}
<LogToConsoleItem value={value} />
</DropdownMenu>
)}
>
<Cog8ToothIcon
size={16}
className={clsx(
"cursor-pointer transition",
hasLocalSettings
? "text-indigo-300 hover:!text-indigo-500 group-hover:text-indigo-400"
: "opacity-0 hover:!text-stone-500 group-hover:text-stone-400 group-hover:opacity-100"
)}
/>
</Dropdown>
);
};

0 comments on commit 918bab2

Please sign in to comment.