From ac3cb3df05807731e4eec46806579659ccb4d826 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Mon, 3 Mar 2025 17:00:32 -0500 Subject: [PATCH] git_ui: horizontal is not vertical (#25961) Fixes an issue where I was missing some brain cells and changed the git panel's `render_entries` to a `v_flex` instead of an `h_flex`. But actually, fixes the git panel entries from disappearing when a scrollbar is rendered. **Before** ![CleanShot 2025-03-03 at 16 36 52@2x](https://github.com/user-attachments/assets/9dca7b9c-318d-4b3f-ab3e-e7242fa7f73a) **After** ![CleanShot 2025-03-03 at 16 35 59@2x](https://github.com/user-attachments/assets/c1fe5fb1-ad57-4bca-ace4-365e70a74066) Closes #25955 Release Notes: - Git Beta: Fixed an issue where when the git panel would need to scroll all the items are pushed off the screen. --- crates/git_ui/src/git_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 7456966ac6f8946c5176e7c54feb16d3b2052ad0..cd122be0560a1e1a8e5a2b5b2217bc5f4d3920a8 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -2274,7 +2274,7 @@ impl GitPanel { ) -> impl IntoElement { let entry_count = self.entries.len(); - v_flex() + h_flex() .size_full() .flex_grow() .overflow_hidden()