From cf4f3ed79acc361e470ad8cff11ea1d98e20ae81 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:04:43 +0100 Subject: [PATCH] Fix padding for notes label (#7280) Fixes the padding of the "notes" button in collab-ui. I'm not sure why the previous code used `div().h_7().w_full()`. Am I missing something here? ### Before ![Screenshot 2024-02-02 at 15 26 44](https://github.com/zed-industries/zed/assets/53836821/0577b706-b433-4e02-802b-b6eccefb3acd) ### After ![Screenshot 2024-02-02 at 15 27 26](https://github.com/zed-industries/zed/assets/53836821/00fd81d8-82a1-4936-829c-022554259fd5) Release Notes: - Fixed padding of the "notes" button in the collaboration panel. Co-authored-by: Marshall Bowers --- crates/collab_ui/src/collab_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index f33c6a13ef3003440469732af95b841b1f8f9cdf..ed5f426c143a16388f62c9dd55a618c7d71feeac 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -957,7 +957,7 @@ impl CollabPanel { .child(render_tree_branch(false, true, cx)) .child(IconButton::new(0, IconName::File)), ) - .child(div().h_7().w_full().child(Label::new("notes"))) + .child(Label::new("notes")) .tooltip(move |cx| Tooltip::text("Open Channel Notes", cx)) }