@@ -3,15 +3,8 @@ import cx from 'classnames';
3
3
import { css } from 'glamor' ;
4
4
import { node , object , string , number , func } from 'prop-types' ;
5
5
6
- import { APP_NAME_SHORT } from '../../../../shared/constants' ;
7
- import Logo from '../../../../components/Logo/Logo' ;
8
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
9
- import { faChevronLeft } from '@fortawesome/free-solid-svg-icons' ;
10
- import { faChevronRight } from '@fortawesome/free-solid-svg-icons' ;
11
6
import { Resizable } from 're-resizable' ;
12
7
13
- import styles from './frame.css' ;
14
-
15
8
const iframeClass = css ( {
16
9
border : 'none' ,
17
10
width : '100%' ,
@@ -68,78 +61,6 @@ const containerLeftMinimizedClass = css({
68
61
} ,
69
62
} ) ;
70
63
71
- const toggleButtonClass = css ( {
72
- position : 'fixed' ,
73
- zIndex : 9999999999 ,
74
- } ) ;
75
-
76
- const toggleButtonBottomRightClass = css ( {
77
- bottom : '40px' ,
78
- right : '30px' ,
79
- } ) ;
80
-
81
- const toggleButtonBottomRightInnerClass = css ( {
82
- bottom : '0px' ,
83
- right : '0px' ,
84
- } ) ;
85
-
86
- const toggleButtonTopRightClass = css ( {
87
- top : '40px' ,
88
- right : '30px' ,
89
- } ) ;
90
-
91
- const toggleButtonTopRightInnerClass = css ( {
92
- top : '0px' ,
93
- right : '0px' ,
94
- } ) ;
95
-
96
- const toggleButtonBottomLeftClass = css ( {
97
- bottom : '40px' ,
98
- left : '30px' ,
99
- } ) ;
100
-
101
- const toggleButtonBottomLeftInnerClass = css ( {
102
- bottom : '0px' ,
103
- left : '0px' ,
104
- } ) ;
105
-
106
- const toggleButtonTopLeftClass = css ( {
107
- top : '40px' ,
108
- left : '30px' ,
109
- } ) ;
110
-
111
- const toggleButtonTopLeftInnerClass = css ( {
112
- top : '0px' ,
113
- left : '0px' ,
114
- } ) ;
115
-
116
- const toggleButtonInnerClass = css ( {
117
- position : 'absolute' ,
118
- // right: '0px',
119
- // bottom: '0px',
120
- width : '45px' ,
121
- height : '35px' ,
122
- boxSizing : 'border-box' ,
123
- cursor : 'pointer' ,
124
- padding : '2px 5px' ,
125
- display : 'flex' ,
126
- alignItems : 'center' ,
127
- justifyContent : 'space-around' ,
128
- fontSize : '16px' ,
129
- fontFamily : 'arial' ,
130
- backgroundColor : 'white' ,
131
- color : 'black' ,
132
- userSelect : 'none' ,
133
- borderRadius : '6px' ,
134
- boxShadow : '-1px 1px 8px rgba(0,0,0,.2)' ,
135
- transition : 'all 0.3s' ,
136
- opacity : 0.3 ,
137
- ':hover' : {
138
- width : '200px' ,
139
- opacity : 1 ,
140
- } ,
141
- } ) ;
142
-
143
64
const FRAME_TOGGLE_FUNCTION = 'chromeIframeSidebarToggle' ;
144
65
const FRAME_FIX_SHRINK_BODY_FUNCTION = 'chromeIframeFixShrinkBody' ;
145
66
@@ -304,91 +225,6 @@ export class Frame extends Component {
304
225
305
226
return (
306
227
< React . Fragment >
307
- { /* {!isDragging && (
308
- <div
309
- className={cx({
310
- [toggleButtonClass]: true,
311
- [toggleButtonTopRightClass]:
312
- toggleButtonLocation === 'top' && sidebarLocation === 'right',
313
- [toggleButtonBottomRightClass]:
314
- toggleButtonLocation === 'bottom' &&
315
- sidebarLocation === 'right',
316
- [toggleButtonTopLeftClass]:
317
- toggleButtonLocation === 'top' && sidebarLocation === 'left',
318
- [toggleButtonBottomLeftClass]:
319
- toggleButtonLocation === 'bottom' && sidebarLocation === 'left',
320
- }) }
321
- // title={`${
322
- // this.state.isMinimized ? 'Open' : 'Hide'
323
- // } ${APP_NAME_SHORT} sidebar`}
324
- >
325
- <div
326
- className={cx({
327
- [toggleButtonInnerClass]: true,
328
- [toggleButtonTopRightInnerClass]:
329
- toggleButtonLocation === 'top' && sidebarLocation === 'right',
330
- [toggleButtonBottomRightInnerClass]:
331
- toggleButtonLocation === 'bottom' &&
332
- sidebarLocation === 'right',
333
- [toggleButtonTopLeftInnerClass]:
334
- toggleButtonLocation === 'top' && sidebarLocation === 'left',
335
- [toggleButtonBottomLeftInnerClass]:
336
- toggleButtonLocation === 'bottom' &&
337
- sidebarLocation === 'left',
338
- })}
339
- style={{ margin: '3px' }}
340
- onClick={this.onFrameClick}
341
- >
342
- <div
343
- style={{
344
- overflow: 'hidden',
345
- whiteSpace: 'nowrap',
346
- display: 'flex',
347
- alignItems: 'center',
348
- }}
349
- >
350
- {sidebarLocation === 'left' && (
351
- <>
352
- <div style={{ width: '20px' }}>
353
- <Logo size={'20px'} />
354
- </div>
355
- <FontAwesomeIcon
356
- icon={
357
- this.state.isMinimized ? faChevronRight : faChevronLeft
358
- }
359
- style={{ marginLeft: '5px', color: 'rgb(233, 115, 46)' }}
360
- />
361
- <div style={{ marginLeft: '5px' }}>
362
- {` ${
363
- this.state.isMinimized ? 'Open' : 'Hide'
364
- } Vertical Tabs` }
365
- </div>
366
- </>
367
- )}
368
-
369
- {sidebarLocation === 'right' && (
370
- <>
371
- <FontAwesomeIcon
372
- icon={
373
- this.state.isMinimized ? faChevronLeft : faChevronRight
374
- }
375
- style={{ marginRight: '5px', color: 'rgb(233, 115, 46)' }}
376
- />
377
- <div style={{ width: '20px' }}>
378
- <Logo size={'20px'} />
379
- </div>
380
- <div style={{ marginLeft: '5px' }}>
381
- {` ${
382
- this.state.isMinimized ? 'Open' : 'Hide'
383
- } Vertical Tabs` }
384
- </div>
385
- </>
386
- )}
387
- </div>
388
- </div>
389
- </div>
390
- )} */ }
391
-
392
228
< div
393
229
id = "nice"
394
230
className = { cx ( {
0 commit comments