Skip to content

Commit 34e4d80

Browse files
author
Robin Simonklein
committed
fix(Values): Apply text style to quotes in string values
1 parent fa85372 commit 34e4d80

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/components/core/value-tree/type/ValueTreeString.vue

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<template>
22
<ValueTreeWrapper :name :level :keep-actions-visible="isEditing" @delete="$emit('delete')">
33
<template #value>
4-
<template v-if="!isEditing">"</template>
5-
<span
6-
ref="valueElement"
7-
class="inline-block font-mono text-code-purple"
8-
:class="{ 'px-1.5 py-0.5': isEditing }"
9-
spellcheck="false"
10-
:contenteditable="isEditing"
11-
@keydown.enter.stop="save"
12-
@keydown.esc.stop="cancel"
13-
@keydown.up.stop
14-
@keydown.down.stop
15-
@blur="onBlur"
16-
/>
17-
<template v-if="!isEditing">"</template>
4+
<span class="font-mono text-code-purple">
5+
<template v-if="!isEditing">"</template>
6+
<span
7+
ref="valueElement"
8+
class="inline-block"
9+
:class="{ 'px-1.5 py-0.5': isEditing }"
10+
spellcheck="false"
11+
:contenteditable="isEditing"
12+
@keydown.enter.stop="save"
13+
@keydown.esc.stop="cancel"
14+
@keydown.up.stop
15+
@keydown.down.stop
16+
@blur="onBlur"
17+
/>
18+
<template v-if="!isEditing">"</template>
19+
</span>
1820
</template>
1921
<template #actions>
2022
<!-- Edit -->

0 commit comments

Comments
 (0)