From b1e6ff99ebc6ca432e0c689759bfcfc1eaf1832f Mon Sep 17 00:00:00 2001 From: les Date: Wed, 7 Oct 2020 10:05:09 +0200 Subject: [PATCH] fix editor overflow --- components/Editor.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/components/Editor.vue b/components/Editor.vue index 44072733..37fa8704 100644 --- a/components/Editor.vue +++ b/components/Editor.vue @@ -173,14 +173,16 @@ export default { .editor { // max-height: auto; // height: auto; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: #FF4500 transparent; + scroll-behavior: smooth; font-family: sans-serif; font-size: 1.1em; border-color: currentColor; border-style: solid; border-width: 0 0 thin 0; // background-color: rgba(255,255,255,0.04); - height: auto; - .focused { opacity: 1 !important; } @@ -190,14 +192,6 @@ export default { // position: absolute; } - .content { - overflow-y: auto; - scrollbar-width: thin; - scrollbar-color: #FF4500 transparent; - scroll-behavior: smooth; - // padding-top: 30px; - // padding: 30px; - } .ProseMirror { padding: 15px; outline: 0;