fix(sortable-card): keep opacity at 100 on mobile

This commit is contained in:
Nicolas Meienberger 2025-12-17 09:00:55 +01:00
parent 3cebc1ce47
commit 1d76e18d38

View file

@ -24,7 +24,7 @@ export function SortableCard({ isDragging, uniqueId, children }: PropsWithChildr
<div <div
{...attributes} {...attributes}
{...listeners} {...listeners}
className="absolute left-1/2 -translate-x-1/2 top-1 z-10 cursor-grab active:cursor-grabbing opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-muted/50 bg-background/80 backdrop-blur-sm" className="absolute left-1/2 -translate-x-1/2 top-1 z-10 cursor-grab active:cursor-grabbing opacity-100 md:opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-muted/50 bg-background/80 backdrop-blur-sm"
> >
<GripVertical className="h-4 w-4 text-muted-foreground rotate-90" /> <GripVertical className="h-4 w-4 text-muted-foreground rotate-90" />
</div> </div>