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

@@ -56,6 +56,7 @@ class Frame extends React.Component<PropsWithRef> {
canonicalUrl,
isSelected,
referrerPolicy,
className = "",
src,
} = this.props;
const withBar = !!(icon || canonicalUrl);
@@ -66,7 +67,9 @@ class Frame extends React.Component<PropsWithRef> {
height={height}
$withBar={withBar}
$border={border}
className={isSelected ? "ProseMirror-selectednode" : ""}
className={
isSelected ? `ProseMirror-selectednode ${className}` : className
}
>
{this.isLoaded && (
<Iframe