Skip to content

Comments

fix: remove double scrollbar in model dropdown and make search sticky#5235

Closed
nevermind-bro wants to merge 3 commits intoKilo-Org:mainfrom
nevermind-bro:fix/model-dropdown-double-scrollbar
Closed

fix: remove double scrollbar in model dropdown and make search sticky#5235
nevermind-bro wants to merge 3 commits intoKilo-Org:mainfrom
nevermind-bro:fix/model-dropdown-double-scrollbar

Conversation

@nevermind-bro
Copy link

Description

Fixes the double scrollbar issue in the model selection dropdown and makes the search box sticky.

Problem

  • Model dropdown showed two scrollbars (one on container, one on items)
  • Search box would scroll out of view when browsing through model list

Solution

  • Removed overflow-y-auto from outer container
  • Made search input sticky with proper positioning
  • Single scrollbar now appears only on items container

Testing

  • All tests passed (19/19)
  • Linting passed
  • Type checking passed
  • Changeset created

Screenshots

Before

Screenshot 2026-01-20 at 6 04 52 PM

After

Screen.Recording.2026-01-20.at.5.04.28.PM.mov

Test Cases

Screenshot 2026-01-20 at 6 02 22 PM

Fixes #5033

- Remove overflow-y-auto from ModelSelector contentClassName to prevent double scrollbar
- Restructure SelectDropdown to use flex layout with sticky search box
- Make search input stay fixed at top while scrolling through models
- Keep single scrollbar on items container only

Fixes issue where model dropdown showed two scrollbars and search box would scroll out of view when browsing through model list.
@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2026

🦋 Changeset detected

Latest commit: 95bd5ed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nevermind-bro
Copy link
Author

Hi @kevinvandijk , can you please review this PR.

@kevinvandijk
Copy link
Collaborator

Thank you for this! We eventually went with #5583 because of the smaller diff but appreciated regardless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit Model is hidden and scroll bars are messed up

3 participants