mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user