adding white background for iframes in case of no background links

This commit is contained in:
Martina 2021-08-23 19:32:06 -07:00
parent 758ac3cb23
commit b9774b4994

View File

@ -54,7 +54,10 @@ export default class SlateLinkObject extends React.Component {
<iframe <iframe
src={url} src={url}
css={STYLES_IFRAME} css={STYLES_IFRAME}
style={{ display: this.state.loaded ? "block" : "none" }} style={{
display: this.state.loaded ? "block" : "none",
background: Constants.system.white,
}}
onLoad={() => this.setState({ loaded: true })} onLoad={() => this.setState({ loaded: true })}
/> />
<LinkLoading <LinkLoading