Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Oct 28, 2024
1 parent 6dde89c commit 91f2eac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/(app)/icons/partials/icons-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@ export function IconListItem({ name, Icon }: IconListItemProps) {
>
<Icon aria-label={name} className={selectedSize} key={name} />
<Menu isOpen={isSelected} onOpenChange={setSelected}>
<Menu.Content triggerRef={triggerRef} showArrow aria-label="Options">
<Menu.Content
triggerRef={triggerRef}
className="sm:min-w-48"
showArrow
aria-label="Options"
>
<Menu.Header className="font-normal font-mono text-xs sm:text-xs" separator>
{name}
</Menu.Header>
<Menu.Item onAction={() => handleCopy("jsx")}>Copy JSX</Menu.Item>
<Menu.Item onAction={() => copySvgToClipboard(Icon)}>Copy SVG</Menu.Item>
<Menu.Item onAction={() => handleCopy("text")}>Copy Name</Menu.Item>
Expand Down

0 comments on commit 91f2eac

Please sign in to comment.