Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(lsg): apply preview styling on webview element
Browse files Browse the repository at this point in the history
fix #122
  • Loading branch information
Alexpeschel authored and lkuechler committed Dec 21, 2017
1 parent 561e4c1 commit e74debf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/lsg/patterns/panes/preview-pane/index.tsx
Expand Up @@ -11,9 +11,13 @@ const StyledPreviewPane = styled.div`
overflow: hidden;
`;

const PreviewPane: React.StatelessComponent = props => <StyledPreviewPane dangerouslySetInnerHTML={{
__html:
'<webview id="preview" style="height: 100%;" src="./preview.html" partition="electron" nodeintegration />'
}} />;
const PreviewPane: React.StatelessComponent = props => (
<StyledPreviewPane
dangerouslySetInnerHTML={{
__html:
'<webview id="preview" style="height: 100%; border-radius: 6px 6px 0 0; overflow: hidden;" src="./preview.html" partition="electron" nodeintegration />'
}}
/>
);

export default PreviewPane;

0 comments on commit e74debf

Please sign in to comment.