fix(agents): keep the prompt box free of scrollbars until it reaches its height limit (#5472)

After one exchange, a new session's empty prompt box showed a horizontal scrollbar and a vertical thumb (visible with always-on scrollbars): the CodeMirror scroller kept a fixed height slightly taller than its content and allowed horizontal overflow. The scroller now sizes to its wrapped text, never scrolls horizontally, and scrolls vertically only past its 280 px limit.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-23 22:02:22 +08:00
1 джерело 999d84b189
коміт aec1382e79
2 files changed
+59

No files matched your search

+2
Переглянути файл
@@ -36,7 +36,9 @@
outline: none;
}
.field :global(.cm-scroller) {
height: auto;
max-height: 280px;
overflow-x: hidden;
overflow-y: auto;
font-family: inherit;
line-height: 1.5;