From ede07c3b0ee10beb0ac2ae4567b3b194dd46fcd4 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 7 Mar 2023 23:05:33 -0800 Subject: [PATCH] Editor tweaks --- src-web/components/Editor/Editor.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src-web/components/Editor/Editor.css b/src-web/components/Editor/Editor.css index e889bc08..0cff38c8 100644 --- a/src-web/components/Editor/Editor.css +++ b/src-web/components/Editor/Editor.css @@ -1,14 +1,5 @@ .cm-wrapper { @apply h-full; - - &.cm-full-height { - @apply relative; - - .cm-editor { - @apply inset-0 absolute; - position: absolute !important; - } - } } .cm-editor { @@ -40,7 +31,7 @@ } .placeholder-widget { - @apply text-[0.9em] text-gray-900 bg-gray-200 px-2 border border-background/70 + @apply text-[0.9em] text-gray-900 bg-gray-200 px-1.5 py-[0.1em] border-y border-gray-50 rounded cursor-default hover:bg-gray-300 hover:text-white; } } @@ -63,6 +54,15 @@ } .cm-multiline { + &.cm-full-height { + @apply relative; + + .cm-editor { + @apply inset-0 absolute; + position: absolute !important; + } + } + .cm-editor { @apply h-full; } @@ -135,7 +135,7 @@ .cm-scroller { &::-webkit-scrollbar-corner, &::-webkit-scrollbar { - @apply w-[5px] h-[5px] bg-transparent; + @apply w-1 h-1 bg-transparent; } &::-webkit-scrollbar-thumb {