Skip to content

Commit e0ee762

Browse files
authored
fix: bugfix cursor alignment (#1062)
1 parent 4039cc7 commit e0ee762

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src2/query/components/NativeQueryEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const completions = computed(() => {
113113
<div class="flex flex-shrink-0 items-center gap-1 border-b p-1">
114114
<DataSourceSelector v-model="data_source" placeholder="Select a data source" />
115115
<ContentEditable
116-
class="flex h-7 cursor-text items-center justify-center rounded bg-white px-2 text-base text-gray-800 focus-visible:ring-1 focus-visible:ring-gray-600"
116+
class="flex h-7 cursor-text items-center justify-center rounded bg-white px-2 text-base leading-7 text-gray-800 focus-visible:ring-1 focus-visible:ring-gray-600"
117117
placeholder="Untitled Dashboard"
118118
:modelValue="query.doc.title"
119119
@returned="query.doc.title = $event"

frontend/src2/query/components/ScriptQueryEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function handleSaveVariables(variables: any[]) {
5252
<div class="relative flex h-[55%] w-full flex-col rounded border">
5353
<div class="flex flex-shrink-0 items-center gap-1 border-b p-1">
5454
<ContentEditable
55-
class="flex h-7 cursor-text items-center justify-center rounded bg-white px-2 text-base text-gray-800 focus-visible:ring-1 focus-visible:ring-gray-600"
55+
class="flex h-7 cursor-text items-center justify-center rounded bg-white px-2 text-base leading-7 text-gray-800 focus-visible:ring-1 focus-visible:ring-gray-600"
5656
:modelValue="query.doc.title"
5757
@returned="query.doc.title = $event"
5858
@blur="query.doc.title = $event"

0 commit comments

Comments
 (0)