File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import srcDoc from 'srcdoc-polyfill';
7
7
import loopProtect from 'loop-protect' ;
8
8
import { JSHINT } from 'jshint' ;
9
9
import decomment from 'decomment' ;
10
+ import classNames from 'classnames' ;
10
11
import { getBlobUrl } from '../actions/files' ;
11
12
import { resolvePathToFile } from '../../../../server/utils/filePath' ;
12
13
import {
@@ -330,10 +331,14 @@ class PreviewFrame extends React.Component {
330
331
}
331
332
332
333
render ( ) {
334
+ const iframeClass = classNames ( {
335
+ 'preview-frame' : true ,
336
+ 'preview-frame--full-view' : this . props . fullView
337
+ } ) ;
333
338
return (
334
339
< iframe
335
340
id = "canvas_frame"
336
- className = "preview-frame"
341
+ className = { iframeClass }
337
342
aria-label = "sketch output"
338
343
role = "main"
339
344
frameBorder = "0"
Original file line number Diff line number Diff line change 5
5
border-width : 0 ;
6
6
}
7
7
8
+ .preview-frame--full-view {
9
+ position : relative ;
10
+ }
11
+
8
12
.preview-frame-holder {
9
13
display : flex ;
10
14
flex-direction : column ;
You can’t perform that action at this time.
0 commit comments