Skip to content

Commit bc10725

Browse files
committed
fix minor styling issues
1 parent 7751b0c commit bc10725

File tree

2 files changed

+0
-169
lines changed

2 files changed

+0
-169
lines changed

src/pages/Content/index.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ document.addEventListener('visibilitychange', (info) => {
3131
}
3232
});
3333

34-
// let updateNoticeRoot = document.createElement('div');
35-
// document.body.appendChild(updateNoticeRoot);
36-
// updateNoticeRoot.setAttribute('id', 'vt-update-notice');
37-
// ReactDOM.render(<UpdateNotice />, updateNoticeRoot);
38-
3934
const setSidebarWidth = (width) => {
4035
sidebarWidth = width;
4136
};

src/pages/Content/modules/frame/frame.jsx

Lines changed: 0 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@ import cx from 'classnames';
33
import { css } from 'glamor';
44
import { node, object, string, number, func } from 'prop-types';
55

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';
116
import { Resizable } from 're-resizable';
127

13-
import styles from './frame.css';
14-
158
const iframeClass = css({
169
border: 'none',
1710
width: '100%',
@@ -68,78 +61,6 @@ const containerLeftMinimizedClass = css({
6861
},
6962
});
7063

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-
14364
const FRAME_TOGGLE_FUNCTION = 'chromeIframeSidebarToggle';
14465
const FRAME_FIX_SHRINK_BODY_FUNCTION = 'chromeIframeFixShrinkBody';
14566

@@ -304,91 +225,6 @@ export class Frame extends Component {
304225

305226
return (
306227
<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-
392228
<div
393229
id="nice"
394230
className={cx({

0 commit comments

Comments
 (0)