fix: play/pause button in miniplayer
Some checks failed
Check / check (push) Has been cancelled

This commit is contained in:
ThaUnknown 2025-06-26 16:38:30 +02:00
parent ace3860226
commit f481bf7c09
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.2",
"version": "6.4.3",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.14.4",

View file

@ -20,6 +20,7 @@
type='button'
{...$$restProps}
on:click
on:pointerdown
on:keydown>
<slot />
</ButtonPrimitive.Root>

View file

@ -908,7 +908,7 @@
</div>
{:else}
<div class='absolute w-full left-0 bottom-0 flex justify-center'>
<Button variant='ghost' class='drop-shadow-[0_0_7px_#000] mb-1' size='icon' on:click={playPause}>
<Button variant='ghost' class='drop-shadow-[0_0_7px_#000] mb-1' size='icon' on:pointerdown={e => { e.stopPropagation(); playPause() }}>
{#if paused}
<Play size={iconSizes.lg} fill='currentColor' class='px-0.5' />
{:else}