fix: placeholder styles

This commit is contained in:
liyasthomas
2022-02-11 10:24:08 +05:30
parent 5b24224ccd
commit 7b2dc68481
4 changed files with 133 additions and 4 deletions

View File

@@ -49,6 +49,15 @@
:spellcheck="false"
:value="header.key"
autofocus
styles="
bg-transparent
flex
flex-1
py-1
px-4
truncate
"
class="flex-1 !flex"
@input="
updateHeader(index, {
key: $event,

View File

@@ -28,7 +28,7 @@ import {
} from "@codemirror/view"
import { EditorState, Extension } from "@codemirror/state"
import clone from "lodash/clone"
import { baseTheme } from "~/helpers/editor/themes/baseTheme"
import { inputTheme } from "~/helpers/editor/themes/baseTheme"
import { HoppEnvironmentPlugin } from "~/helpers/editor/extensions/HoppEnvironment"
import { useStreamSubscriber } from "~/helpers/utils/composables"
@@ -88,7 +88,7 @@ const envTooltipPlugin = new HoppEnvironmentPlugin(subscribeToStream, view)
const initView = (el: any) => {
const extensions: Extension = [
baseTheme,
inputTheme,
envTooltipPlugin,
placeholderExt(props.placeholder),
ViewPlugin.fromClass(
@@ -158,6 +158,5 @@ watch(editor, () => {
.env-input {
@apply flex;
@apply flex-1;
@apply px-2;
}
</style>