From f3399daf6c7d48adf9c07e3d9df3349495c8c0f0 Mon Sep 17 00:00:00 2001
From: Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com>
Date: Fri, 8 Aug 2025 17:32:13 -0400
Subject: [PATCH] file_finder: Fix right border not rendering (#35684)
Closes #35683
Release Notes:
- Fixed file finder borders not rendering properly
Before:
After:
---
crates/file_finder/src/file_finder.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/file_finder/src/file_finder.rs b/crates/file_finder/src/file_finder.rs
index e5ac70bb58..c6997ccdc0 100644
--- a/crates/file_finder/src/file_finder.rs
+++ b/crates/file_finder/src/file_finder.rs
@@ -17,7 +17,7 @@ use fuzzy::{CharBag, PathMatch, PathMatchCandidate};
use gpui::{
Action, AnyElement, App, Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable,
KeyContext, Modifiers, ModifiersChangedEvent, ParentElement, Render, Styled, Task, WeakEntity,
- Window, actions,
+ Window, actions, rems,
};
use open_path_prompt::OpenPathPrompt;
use picker::{Picker, PickerDelegate};
@@ -350,7 +350,7 @@ impl FileFinder {
pub fn modal_max_width(width_setting: Option, window: &mut Window) -> Pixels {
let window_width = window.viewport_size().width;
- let small_width = Pixels(545.);
+ let small_width = rems(34.).to_pixels(window.rem_size());
match width_setting {
None | Some(FileFinderWidth::Small) => small_width,