feat(web): morph composer and panel action icons (#14924)

Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
Jake Leventhalandmaria-rcks authored and GitHub committed 2026-10-03 21:10:58 -03:00
1 parent 44bd4c9caf
commit f2cc80a7a4
31 files changed
+278 -230

No files matched your search

@@ -1,12 +1,14 @@
import { CheckIcon, CopyIcon } from "lucide-react";
import { Check, Copy } from "lucide";
import { useRef } from "react";
import { useCopyToClipboard } from "../hooks/useCopyToClipboard";
import { cn } from "../lib/utils";
import {
ANCHORED_COPY_TOAST_TIMEOUT_MS,
showAnchoredCopyErrorToast,
showAnchoredCopySuccessToast,
} from "./ui/anchoredCopyToast";
import { Button } from "./ui/button";
import { MorphIcon } from "~/components/MorphIcon";
import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
export function DiffFilePathCopyButton({ filePath }: { filePath: string }) {
@@ -30,7 +32,10 @@ export function DiffFilePathCopyButton({ filePath }: { filePath: string }) {
/>
}
>
{isCopied ? <CheckIcon className="size-3 text-success" /> : <CopyIcon className="size-3" />}
<MorphIcon
className={cn("size-3", isCopied && "text-success")}
icon={isCopied ? Check : Copy}
/>
</TooltipTrigger>
<TooltipPopup>
<p>{isCopied ? "Copied" : "Copy path"}</p>