File tree 1 file changed +10
-11
lines changed
src/components/CodeEditor
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,12 @@ const CodeEditorIcon = styled.button`
81
81
82
82
const CodeEditorWindow = styled . div `
83
83
box-shadow: 0px 0px 55px rgba(0, 0, 0, 0.25);
84
- z-index: ${ props => props . zIndex } ;
85
- transform: ${ props => `translate(${ props . x } px, ${ props . y } px)` } ;
86
- width: ${ props => props . width } px;
87
- height: ${ props => props . height } px;
84
+ z-index: ${ ( props ) => props . zIndex } ;
85
+ transform: ${ ( props ) => `translate(${ props . x } px, ${ props . y } px)` } ;
86
+ width: ${ ( props ) => props . width } px;
87
+ height: ${ ( props ) => props . height } px;
88
88
top: 0;
89
- left: 0;
89
+ left: 0;
90
90
position: fixed;
91
91
` ;
92
92
@@ -258,7 +258,6 @@ export const CodeEditor = ({
258
258
) ;
259
259
}
260
260
261
-
262
261
return ReactDOM . createPortal (
263
262
< ThemeProvider
264
263
theme = {
@@ -268,11 +267,11 @@ export const CodeEditor = ({
268
267
}
269
268
>
270
269
< CodeEditorWindow
271
- zIndex = { zIndex }
272
- x = { editorPosition . x }
273
- y = { editorPosition . y }
274
- height = { editorSize . height }
275
- width = { editorSize . width }
270
+ zIndex = { zIndex }
271
+ x = { editorPosition . x }
272
+ y = { editorPosition . y }
273
+ height = { editorSize . height }
274
+ width = { editorSize . width }
276
275
ref = { editorWindowRef }
277
276
>
278
277
< CodeEditorTopPanel
You can’t perform that action at this time.
0 commit comments