ui: queue: hide grab handle if hover available

This commit is contained in:
2026-02-11 22:00:41 -08:00
parent 86827777f4
commit 7e3a22f14b

View File

@@ -44,9 +44,7 @@
<div <div
class="flex flex-col h-full w-full bg-background/50 backdrop-blur rounded-lg border overflow-hidden" class="flex flex-col h-full w-full bg-background/50 backdrop-blur rounded-lg border overflow-hidden"
> >
<div <div class="px-4 py-3 border-b flex justify-between items-center bg-muted/20">
class="px-4 py-3 border-b flex justify-between items-center bg-muted/20"
>
<h3 class="font-semibold text-sm">Up Next</h3> <h3 class="font-semibold text-sm">Up Next</h3>
<Button <Button
variant="ghost" variant="ghost"
@@ -98,7 +96,7 @@
<!-- Hover: Grip Handle --> <!-- Hover: Grip Handle -->
<div <div
class="hidden group-hover:flex items-center justify-center w-full h-full cursor-grab active:cursor-grabbing text-muted-foreground/50 hover:text-foreground" class="[@media(hover:hover)]:hidden group-hover:flex items-center justify-center w-full h-full cursor-grab active:cursor-grabbing text-muted-foreground/50 hover:text-foreground"
aria-label="Drag to reorder" aria-label="Drag to reorder"
> >
<GripVertical class="h-4 w-4" /> <GripVertical class="h-4 w-4" />
@@ -112,10 +110,7 @@
> >
{track.animeName} {track.animeName}
<span class="tag" <span class="tag"
>{songTypeNumberLabel( >{songTypeNumberLabel(track.type, track.number)}</span
track.type,
track.number,
)}</span
> >
<span class="text-muted-foreground font-normal" <span class="text-muted-foreground font-normal"
>{track.globalPercent}%</span >{track.globalPercent}%</span
@@ -123,9 +118,7 @@
</div> </div>
<div class="text-xs text-foreground/80"> <div class="text-xs text-foreground/80">
{track.title} {track.title}
<span class="text-muted-foreground" <span class="text-muted-foreground">{track.artist}</span>
>{track.artist}</span
>
</div> </div>
</div> </div>