aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Inputs/Code.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Inputs/Code.js')
-rw-r--r--frontend/src/components/Inputs/Code.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/frontend/src/components/Inputs/Code.js b/frontend/src/components/Inputs/Code.js
index 6817db2..0767808 100644
--- a/frontend/src/components/Inputs/Code.js
+++ b/frontend/src/components/Inputs/Code.js
@@ -5,6 +5,9 @@ import Editor from 'react-simple-code-editor';
import {Highlighter} from "../renderers/Code";
import {CodeLike, Hover} from "../Form/mixins";
+const Wrapper = styled.div`
+ position: relative;
+`
const EditorWrapper = styled(Editor)`
overflow: visible !important;
@@ -31,7 +34,7 @@ const EditorWrapper = styled(Editor)`
export const Code = ({content, id, readOnly, setContentCallback, ...props}) => {
return (
- <div>
+ <Wrapper>
<EditorWrapper
name="content"
readOnly={readOnly}
@@ -46,6 +49,6 @@ export const Code = ({content, id, readOnly, setContentCallback, ...props}) => {
<CharLimit
content={content}
maxLength={props.maxLength} />
- </div>
+ </Wrapper>
);
} \ No newline at end of file