-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix: keep pinned models fixed at top of scrollable list #8813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Separated pinned and unpinned configs into different containers - Pinned configs now stay fixed at the top - Only unpinned configs are scrollable - Added tests to verify the fixed behavior Fixes #8812
Review SummaryAll previously identified issues have been resolved. The refactored implementation using CSS sticky positioning is much cleaner and more maintainable than the previous dynamic height calculation approach.
Mention @roomote in a comment to trigger your PR Fixer agent and make changes to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review complete. I found 3 issues that should be addressed before this PR can be merged. Please see the inline comments for details.
|
Success, looks good |
- Changed sticky header background from bg-vscode-editorWidget-background to bg-vscode-dropdown-background to match popover container - Moved separator logic into sticky container as conditional bottom border to prevent scroll artifacts - Updated tests to match new separator structure - All 21 tests passing
This PR attempts to address Issue #8812. Feedback and guidance are welcome.
Problem
When the model list is long enough to scroll, the pinned models at the top scroll away with the rest of the list, which defeats the purpose of pinning them for quick access.
Solution
Changes
ApiConfigSelector.tsxto render pinned items in a fixed container and unpinned items in a scrollable containerTesting
Screenshots:
Before


After
Fixes #8812
Important
Fixes pinned models scrolling issue by separating pinned and unpinned models in
ApiConfigSelector.tsx, ensuring pinned models remain fixed.ApiConfigSelector.tsx.ApiConfigSelector.spec.tsxto verify pinned models remain fixed and unpinned models scroll.This description was created by
for 93c1b6f. You can customize this summary. It will automatically update as commits are pushed.