diff options
author | Ezzud <contact@ezzud.fr> | 2023-04-11 00:21:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 22:21:30 +0000 |
commit | 7eb12f0fb78a82b715459db43eb1cc3ecf746979 (patch) | |
tree | 2c217aee670ce2ea02ff945cb99f9d95fb2b2106 | |
parent | 0a3dc5c6e80c0981cfffb7019bc877ce734b8574 (diff) | |
download | Vencord-7eb12f0fb78a82b715459db43eb1cc3ecf746979.tar.gz Vencord-7eb12f0fb78a82b715459db43eb1cc3ecf746979.tar.bz2 Vencord-7eb12f0fb78a82b715459db43eb1cc3ecf746979.zip |
SpotifyControls: Fix flashing button row when using show on hover (#850)
Co-authored-by: V <vendicated@riseup.net>
-rw-r--r-- | src/plugins/spotifyControls/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |