aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Inputs/Code.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-04-11 14:55:54 -0700
committerjackyzha0 <[email protected]>2021-04-11 14:55:54 -0700
commitdc3f74c642be4dab8ce5507a444ba93371527e78 (patch)
tree6b8c95e16d1903c5e6006e671e289dcb46085e4e /frontend/src/components/Inputs/Code.js
parentpassword resolution, dynamic head (diff)
downloadctrl-v-dc3f74c642be4dab8ce5507a444ba93371527e78.tar.xz
ctrl-v-dc3f74c642be4dab8ce5507a444ba93371527e78.zip
fix broken multiline
Diffstat (limited to 'frontend/src/components/Inputs/Code.js')
-rw-r--r--frontend/src/components/Inputs/Code.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend/src/components/Inputs/Code.js b/frontend/src/components/Inputs/Code.js
index adb1536..96c08c4 100644
--- a/frontend/src/components/Inputs/Code.js
+++ b/frontend/src/components/Inputs/Code.js
@@ -6,11 +6,15 @@ import {Highlighter} from "../renderers/Code";
import {CodeLike, Hover} from "../Common/mixins";
const Wrapper = styled.div`
+ display: block;
position: relative;
+ width: calc(100%);
`
+
const EditorWrapper = styled(Editor)`
overflow: visible !important;
-
+ position: relative;
+
& > * {
padding: 0 !important;
width: 100%;
@@ -18,7 +22,7 @@ const EditorWrapper = styled(Editor)`
& pre, & code, & > textarea {
${CodeLike}
- min-height: 40vh;
+ // min-height: 40vh;
}
& pre {