From dbf726d9e021a692254defdab8b993063b15354f Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 6 Mar 2021 16:09:51 -0800 Subject: update watermark styling --- frontend/src/components/Inputs/Code.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/Inputs/Code.js') 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 ( -
+ { -
+ ); } \ No newline at end of file -- cgit v1.2.3