Skip to content

Open source CapCut alternative.

TypeScript

fix(site): light the guides icon blue while guides show

David Le6d7bbc670c0f
diff --git a/site/src/cut/components/GuidesMenu.tsx b/site/src/cut/components/GuidesMenu.tsx
index 766ac908..15c1d233 100644
--- a/site/src/cut/components/GuidesMenu.tsx
+++ b/site/src/cut/components/GuidesMenu.tsx
@@ -27,12 +27,7 @@ export function GuidesMenu() {
const showing = guides.length > 0 && !guidesHidden;
const toggle = () => useEditor.getState().toggleGuidesShown();
return (
- <div
- className={cn(
- "mr-2 flex items-center overflow-hidden rounded-md border border-border",
- showing && "bg-accent text-foreground"
- )}
- >
+ <div className="mr-2 flex items-center overflow-hidden rounded-md border border-border">
<Button
variant="ghost"
size="icon-xs"
@@ -42,7 +37,7 @@ export function GuidesMenu() {
className="rounded-r-none"
onClick={toggle}
>
- <Grid3x3 className="size-5" strokeWidth={1.5} />
+ <Grid3x3 className={cn("size-5", showing && "text-[#0a84ff]")} strokeWidth={1.5} />
</Button>
<DropdownMenu>
<DropdownMenuTrigger