The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix icons
Kiran Kdd029cd0f8d6
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsxindex df81bf23b3..0e277e59cb 100644--- a/apps/web/ui/analytics/toggle.tsx+++ b/apps/web/ui/analytics/toggle.tsx@@ -423,13 +423,23 @@ export default function Toggle({);return folder ? (- <FolderIcon folder={folder} shape="square" />+ <FolderIcon+ folder={folder}+ shape="square"+ className="size-3"+ />) : null;},options:folders?.map((folder) => ({value: folder.id,- icon: <FolderIcon folder={folder} shape="square" />,+ icon: (+ <FolderIcon+ folder={folder}+ shape="square"+ className="size-3"+ />+ ),label: folder.name,})) ?? null,},diff --git a/apps/web/ui/folders/folder-icon.tsx b/apps/web/ui/folders/folder-icon.tsxindex 2cf2667fbb..77a8f6f168 100644--- a/apps/web/ui/folders/folder-icon.tsx+++ b/apps/web/ui/folders/folder-icon.tsx@@ -63,22 +63,32 @@ const determineFolderIcon = (export const FolderIcon = ({folder,- circlePadding = "p-2.5",shape = "rounded",+ className,}: {folder: Pick<FolderProps, "id" | "accessLevel">;- circlePadding?: string;shape?: "rounded" | "square";+ className?: string;}) => {const iconType = determineFolderIcon(folder);const { borderColor, bgColor, icon: Icon } = folderIconsMap[iconType];- const shapeClasses = shape === "rounded" ? "rounded-full" : "rounded-md";-return (- <div className={cn(shapeClasses, "border", borderColor, bgColor)}>- <div className={cn(shape === "rounded" ? circlePadding : "p-1")}>- <Icon className={"size-4"} />+ <div+ className={cn(+ shape === "rounded" ? "rounded-full bg-white p-0.5" : "rounded-md",+ borderColor,+ shape !== "rounded" && bgColor,+ "border",+ )}+ >+ <div+ className={cn(+ shape === "rounded" ? "rounded-full p-2" : "rounded-md p-1",+ bgColor,+ )}+ >+ <Icon className={cn("size-4", className)} /></div></div>);