Commit f0df398
fix(gui): remove awkward inner scroll on onboarding API-key card (#12802)
* fix(gui): remove awkward inner scroll on onboarding API-key card
In the empty chat state, `main` is a fixed-height (100vh) flex scroll
container. Its children (the StepsDiv banner area and the input/onboarding
section) were allowed to flex-shrink, and StepsDiv's always-on
`overflow-y-scroll` turned into a cramped nested scrollbox. This trapped
the onboarding API-key card in a small inner scroll area instead of
letting it lay out naturally.
Only enable StepsDiv's overflow scroll when there is chat history (when it
is `flex-1`), and mark both the empty-state StepsDiv and the input section
`shrink-0` so the onboarding card keeps its natural height and the panel
scrolls as one. Chat layout (history present) is unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(gui): remove empty onboarding route scroll trap
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d3f60ba commit f0df398
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments