From ba63a022c9a22ca66d68ef2a8f0bb9b5b0a9984d Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Sat, 31 Oct 2026 04:59:47 +0000 Subject: [PATCH] recent_projects: Show remote picker scrollbar (#63909) Make overflowing remote lists discoverable and size the scrollbar accurately from the first layout, matching the Recent Projects picker. Closes #63856. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [ ] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable (the impact on [large remote lists](https://github.com/zed-industries/zed/blob/84d9a73c1957a8181c8ae017e703d1d56a18426a/crates/gpui/src/elements/list.rs#L196-L201) was not tested) --- Release Notes: - Fixed a missing scrollbar in the Open Remote picker, making additional remote servers easier to discover --- crates/recent_projects/src/remote_servers.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs index 2a0949aaabd..d0a010e5d87 100644 --- a/crates/recent_projects/src/remote_servers.rs +++ b/crates/recent_projects/src/remote_servers.rs @@ -1501,7 +1501,10 @@ impl RemoteServerProjects { true, cx, ); - Picker::list(delegate, window, cx).embedded() + Picker::list(delegate, window, cx) + .list_measure_all() + .show_scrollbar(true) + .embedded() }); let mut read_ssh_config = RemoteSettings::get_global(cx).read_ssh_config; let ssh_config_updates = if read_ssh_config {