From dc5dab3e161c24c96ee18b0562c2bdc20e12de08 Mon Sep 17 00:00:00 2001
From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
Date: Tue, 16 Dec 2025 19:02:46 -0500
Subject: [PATCH] git: Align checkboxes in git panel (#45048)
Before this fix checkboxes would overflow off the visible view which
isn't ideal. This aligns the checkboxes by allowing the path name to
overflow.
#### Before
#### After
Release Notes:
- N/A
Co-authored-by: Cole Miller
Co-authored-by: Matt Miller
---
crates/git_ui/src/git_panel.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 362423b79fed0e8f3428d6784dd6f15b47708247..404394be13821fd6e0fc568723aea29e233b2a6d 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -4843,7 +4843,7 @@ impl GitPanel {
cx.stop_propagation();
},
)
- .child(name_row)
+ .child(name_row.overflow_x_hidden())
.child(
div()
.id(checkbox_wrapper_id)
@@ -4997,7 +4997,7 @@ impl GitPanel {
this.toggle_directory(&key, window, cx);
})
})
- .child(name_row)
+ .child(name_row.overflow_x_hidden())
.child(
div()
.id(checkbox_wrapper_id)