mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 04:19:49 +03:00
adding white background for iframes in case of no background links
This commit is contained in:
parent
758ac3cb23
commit
b9774b4994
@ -54,7 +54,10 @@ export default class SlateLinkObject extends React.Component {
|
||||
<iframe
|
||||
src={url}
|
||||
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 })}
|
||||
/>
|
||||
<LinkLoading
|
||||
|
Loading…
Reference in New Issue
Block a user