File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/renderer/extensions/vueNodes/widgets/components Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 5
5
>
6
6
<!-- Display mode: Rendered markdown -->
7
7
<div
8
- v-if = " !isEditing "
9
- class =" comfy-markdown-content text-xs min-h-[60px] rounded-lg px-4 py-2 overflow-y-auto lod-toggle "
8
+ class = " comfy-markdown-content hover:bg-[var(--p-content-hover-background)] text-sm min-h-[60px] w-full rounded-lg px-4 py-2 overflow-y-auto lod-toggle "
9
+ : class =" isEditing === false ? 'visible' : 'invisible' "
10
10
v-html =" renderedHtml"
11
11
/>
12
12
13
13
<!-- Edit mode: Textarea -->
14
14
<Textarea
15
- v-else
15
+ v-show = " isEditing "
16
16
ref =" textareaRef"
17
17
v-model =" localValue"
18
18
:disabled =" readonly"
19
- class =" w-full text-xs"
20
- size =" small"
21
- :rows =" 6"
19
+ class =" w-full min-h-[60px] absolute inset-0 resize-none"
22
20
:pt =" {
23
21
root: {
22
+ class: 'text-sm w-full h-full',
24
23
onBlur: handleBlur
25
24
}
26
25
}"
@@ -92,7 +91,7 @@ const handleBlur = () => {
92
91
border-radius : var (--p-border-radius );
93
92
}
94
93
95
- .widget -markdown :hover:not ( :has ( textarea )) {
94
+ .comfy -markdown-content :hover {
96
95
background-color : var (--p-content-hover-background );
97
96
}
98
97
</style >
You can’t perform that action at this time.
0 commit comments