diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-03 21:25:14 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-03 21:25:14 +0200 |
commit | 5bb08bdb6465eebc9dcf80ba2971d894b804abb8 (patch) | |
tree | 3427ba03fe0dfbba5521fde1193de01e53759c7a | |
parent | 405be7ef138bc9cbbb9e6d19139ea0c0b9c672f7 (diff) | |
download | Vencord-5bb08bdb6465eebc9dcf80ba2971d894b804abb8.tar.gz Vencord-5bb08bdb6465eebc9dcf80ba2971d894b804abb8.tar.bz2 Vencord-5bb08bdb6465eebc9dcf80ba2971d894b804abb8.zip |
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
-rw-r--r-- | src/plugins/spotifyControls/PlayerComponent.tsx | 8 | ||||
-rw-r--r-- | 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 3276be1..3de1687 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -372,10 +372,10 @@ export function Player() { return ( <ErrorBoundary fallback={() => ( - <> - <Forms.FormText>Failed to render Spotify Modal :(</Forms.FormText> - <Forms.FormText>Check the console for errors</Forms.FormText> - </> + <div className="vc-spotify-fallback"> + <p>Failed to render Spotify Modal :(</p> + <p >Check the console for errors</p> + </div> )}> <div id={cl("player")}> <Info track={track} /> diff --git a/src/plugins/spotifyControls/spotifyStyles.css b/src/plugins/spotifyControls/spotifyStyles.css index 18fb175..88e1d0a 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); +} |