From 5bb08bdb6465eebc9dcf80ba2971d894b804abb8 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 3 Apr 2023 21:25:14 +0200 Subject: [PATCH] SpotifyControls: Fix crashing on canary Vencord is still pretty broken on Canary and likely will be for a bit, but this should at least fix instantly crashing --- src/plugins/spotifyControls/PlayerComponent.tsx | 8 ++++---- src/plugins/spotifyControls/spotifyStyles.css | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index 3276be17b..3de168709 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -372,10 +372,10 @@ export function Player() { return ( ( - <> - Failed to render Spotify Modal :( - Check the console for errors - +
+

Failed to render Spotify Modal :(

+

Check the console for errors

+
)}>
diff --git a/src/plugins/spotifyControls/spotifyStyles.css b/src/plugins/spotifyControls/spotifyStyles.css index 18fb1754d..88e1d0aaf 100644 --- a/src/plugins/spotifyControls/spotifyStyles.css +++ b/src/plugins/spotifyControls/spotifyStyles.css @@ -191,3 +191,8 @@ .vc-spotify-time-right { right: 0; } + +.vc-spotify-fallback { + padding: 0.5em; + color: var(--text-normal); +}