fix: Spotify embed shows white background in dark mode

This commit is contained in:
Tom Moor
2023-05-25 19:58:01 -04:00
parent 33b0354cfe
commit e9ec31e5b8
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import * as React from "react";
import styled from "styled-components";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
@@ -23,7 +24,7 @@ function Spotify(props: Props) {
}
return (
<Frame
<SpotifyFrame
{...props}
width="100%"
height={`${height}px`}
@@ -34,6 +35,10 @@ function Spotify(props: Props) {
);
}
const SpotifyFrame = styled(Frame)`
border-radius: 13px;
`;
Spotify.ENABLED = [new RegExp("https?://open\\.spotify\\.com/(.*)$")];
export default Spotify;