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.
This commit is contained in:
l0ng-ai
2026-11-23 22:02:22 +08:00
committed by GitHub
parent 999d84b189
commit aec1382e79
2 changed files with 59 additions and 0 deletions
+2
View File
@@ -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;