From 5df4e1eaa05cfd4c25b3ef63f4ed630e30e27057 Mon Sep 17 00:00:00 2001 From: galuis116 <116897328+galuis116@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:39:06 -0700 Subject: [PATCH] recent_projects: Fix remote projects dialog not showing vertical scrollbar for overflow content (#54425) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #54424 Release Notes: - N/A Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> --- crates/recent_projects/src/remote_servers.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs index 860903d5d6f03a4564c931713d43c77e745db573..77553791f87f7515386c08eb41d821c359c2fad5 100644 --- a/crates/recent_projects/src/remote_servers.rs +++ b/crates/recent_projects/src/remote_servers.rs @@ -45,8 +45,8 @@ use std::{ use ui::{ CommonAnimationExt, IconButtonShape, KeyBinding, List, ListItem, ListSeparator, Modal, - ModalFooter, ModalHeader, Navigable, NavigableEntry, Section, Tooltip, WithScrollbar, - prelude::*, + ModalFooter, ModalHeader, Navigable, NavigableEntry, ScrollAxes, Scrollbars, Section, Tooltip, + WithScrollbar, prelude::*, }; use util::{ ResultExt, @@ -2827,7 +2827,12 @@ impl RemoteServerProjects { ) .size_full(), ) - .vertical_scrollbar_for(&state.scroll_handle, window, cx), + .custom_scrollbars( + Scrollbars::always_visible(ScrollAxes::Vertical) + .tracked_scroll_handle(&state.scroll_handle), + window, + cx, + ), ), ) .footer(ModalFooter::new().end_slot({