zed/crates/settings_ui
Mayur Athavale 46b11cc550
Fix settings sidebar selection when scrolling (#65172)
## Summary

Closes #65156.

Update the settings sidebar selection when scrolling through
subsections. Allow the final short subsections to scroll into position,
and update selection as the next header's surrounding region reaches the
top of the content viewport.

## Testing

- Built and ran Zed locally on Windows; manually verified by the
contributor.
- Passed 9 navbar tests and the settings content viewport regression
test.
- Passed `cargo fmt --package settings_ui -- --check` and `git diff
--check`.

To reproduce: open Settings, expand Window & Layout, and scroll the
content down and back up. Check that the sidebar follows the visible
subsection, including Pane Modifiers and Pane Split Direction at the
end. Clicking a sidebar subsection should still scroll to it.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

### Settings sidebar follows scrolling


https://github.com/user-attachments/assets/eaf298c5-ef50-4741-a90a-066120ae313a

Release Notes:

- Fixed settings sidebar selection to follow scrolling through settings

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
2026-10-07 15:00:11 +00:00
..
src Fix settings sidebar selection when scrolling (#65172) 2026-10-07 15:00:11 +00:00
Cargo.toml Fix cargo shear warnings (#64340) 2026-09-17 08:49:31 +00:00
LICENSE-GPL Start up settings UI 2 (#38673) 2025-09-24 15:45:14 +00:00