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 1ea5c042f5
commit d8cfe29f22

View file

@ -24,7 +24,7 @@ export function SortableCard({ isDragging, uniqueId, children }: PropsWithChildr
<div
{...attributes}
{...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" />
</div>