Skip to content

Commit 0a0368b

Browse files
committed
Remove top bar in an embedded viewer
1 parent b18a7fe commit 0a0368b

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

dist/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/EmbeddedViewer.jsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createContainer } from 'unstated-next'
44

55
import { concat } from 'lodash'
66
import { makeStyles } from '@material-ui/styles';
7-
import { Button, Icon, IconButton } from '@material-ui/core'
7+
import { Button, Icon } from '@material-ui/core'
88

99
import { TOPBAR_HEIGHT } from './TopBar.jsx';
1010

@@ -14,11 +14,6 @@ const useStyles = makeStyles(theme => ({
1414
display: 'none',
1515
}
1616
},
17-
viewerTopBar: {
18-
background: '#333',
19-
width: '100%',
20-
textAlign: 'right',
21-
},
2217
}))
2318

2419

@@ -106,11 +101,6 @@ export default withRouter(function EmbeddedViewer({ history }) {
106101

107102
return (
108103
<div className={classes.viewer} style={style}>
109-
<div className={classes.viewerTopBar}>
110-
<IconButton onClick={closeViewer} title="Close embedded viewer" style={{ color: '#999' }}>
111-
<Icon>close</Icon>
112-
</IconButton>
113-
</div>
114104
<iframe style={{height: '100%', width: '100%', border: 'solid 1px', flex: 1}} src={view_url.url}></iframe>
115105
</div>
116106
)

0 commit comments

Comments
 (0)