From 7eb12f0fb78a82b715459db43eb1cc3ecf746979 Mon Sep 17 00:00:00 2001 From: Ezzud Date: Tue, 11 Apr 2023 00:21:30 +0200 Subject: SpotifyControls: Fix flashing button row when using show on hover (#850) Co-authored-by: V --- src/plugins/spotifyControls/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/spotifyControls/index.tsx b/src/plugins/spotifyControls/index.tsx index 3a5802a..d35f7e5 100644 --- a/src/plugins/spotifyControls/index.tsx +++ b/src/plugins/spotifyControls/index.tsx @@ -28,8 +28,8 @@ function toggleHoverControls(value: boolean) { const style = document.createElement("style"); style.id = "vc-spotify-hover-controls"; style.textContent = ` -.vc-spotify-button-row { height: 0; opacity: 0; will-change: height, opacity; transition: height .2s, opacity .05s; } -#vc-spotify-player:hover .vc-spotify-button-row { opacity: 1; height: 32px; } +.vc-spotify-button-row { height: 0; opacity: 0; will-change: height, opacity; transition: height .2s, opacity .05s; pointer-events: none; } +#vc-spotify-player:hover .vc-spotify-button-row { opacity: 1; height: 32px; pointer-events: auto;} `; document.head.appendChild(style); } -- cgit