mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-29 16:54:09 +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
|
<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
|
||||||
|
Loading…
Reference in New Issue
Block a user