Skip to content

Commit 203a546

Browse files
authored
(fix) Auto expand prompt edit textarea unwanted scrolling (#33)
1 parent e6d2288 commit 203a546

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ui/components/prompts/add-edit.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -527,17 +527,11 @@ function autoResizeUserPrompt() {
527527
});
528528
}
529529
530-
// Optionally, auto-resize on mount and when value changes
530+
// Auto-resize only on mount (when entering edit mode)
531531
onMounted(() => {
532532
autoResizeSystemPrompt();
533533
autoResizeUserPrompt();
534534
});
535-
watch(systemPrompt, () => {
536-
autoResizeSystemPrompt();
537-
});
538-
watch(userPrompt, () => {
539-
autoResizeUserPrompt();
540-
});
541535
542536
543537
// Computed property for validation errors

0 commit comments

Comments
 (0)