From 4f94a5a8fee17ecdf50c7150865d2ab71fcf351a Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Sat, 26 Jul 2025 21:06:48 +0100 Subject: [PATCH] Make now-playing show on .player focus instead of hover. - .player now can be focused by tab index or clicking - now-playing now delegates focus (tapping el focuses first focusable child + :focus === :focus-within but extends out shadowroot) this will be used to show song metadata (artist, album, spotify links) --- src/components/playing/NowPlaying.astro | 86 +++++++++++++++---------- 1 file changed, 52 insertions(+), 34 deletions(-) diff --git a/src/components/playing/NowPlaying.astro b/src/components/playing/NowPlaying.astro index 7736e13..7f18d84 100644 --- a/src/components/playing/NowPlaying.astro +++ b/src/components/playing/NowPlaying.astro @@ -33,6 +33,7 @@ const track = await spotifyNowPlaying().catch((err) => { >
{
-