diff --git a/apps/editor/components/ui/panels/presets/presets-popover.tsx b/apps/editor/components/ui/panels/presets/presets-popover.tsx index c2217b43..10c6e4ed 100644 --- a/apps/editor/components/ui/panels/presets/presets-popover.tsx +++ b/apps/editor/components/ui/panels/presets/presets-popover.tsx @@ -1,10 +1,10 @@ 'use client' import { useEffect, useState, useCallback } from 'react' -import { BookMarked, Check, Globe, GlobeLock, Pencil, Plus, Save, Trash2, Users, X } from 'lucide-react' +import { BookMarked, Check, Globe, GlobeLock, MoreHorizontal, Pencil, Plus, Save, Trash2, Users, X } from 'lucide-react' import { emitter } from '@pascal-app/core' +import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/primitives/dropdown-menu' import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/primitives/popover' -import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/primitives/tooltip' import { useAuth } from '@/features/community/lib/auth/hooks' import { cn } from '@/lib/utils' @@ -390,7 +390,7 @@ function PresetRow({ return (
  • {/* Thumbnail */} -
    +
    {preset.thumbnail_url ? ( // eslint-disable-next-line @next/next/no-img-element {preset.name} @@ -407,7 +407,8 @@ function PresetRow({ {preset.name} - {preset.is_community && ( + {/* Only show globe in "My presets" — in community tab it's redundant */} + {isMine && preset.is_community && ( )} @@ -416,73 +417,41 @@ function PresetRow({ - {/* Actions — only shown on hover for "My presets" */} + {/* Actions — 3-dot dropdown, only in "My presets" */} {isMine && ( -
    - {/* Save into (overwrite) */} - - - - - Save current config here - - - {/* Community toggle */} - - - - - - {preset.is_community ? 'Remove from community' : 'Share with community'} - - - - {/* Rename */} - - - - - Rename - - - {/* Delete */} - - - - - Delete - -
    + + + + + + + + Update with current + + + {preset.is_community + ? <>Remove from community + : <>Share with community} + + + + Rename + + + + Delete + + + )}
  • )