From 5307b75b2f81a105922b4f271ea34d8f969193a8 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 21 Dec 2023 22:29:30 -0500 Subject: [PATCH] Add more left padding to title bar (#3768) This PR adds more left padding to the title bar to achieve the same positioning of the title bar items that we have in Zed1. Release Notes: - N/A --- crates/collab_ui2/src/collab_titlebar_item.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/collab_ui2/src/collab_titlebar_item.rs b/crates/collab_ui2/src/collab_titlebar_item.rs index 8e542e413e..e4a6ff089a 100644 --- a/crates/collab_ui2/src/collab_titlebar_item.rs +++ b/crates/collab_ui2/src/collab_titlebar_item.rs @@ -74,14 +74,13 @@ impl Render for CollabTitlebarItem { // Set a non-scaling min-height here to ensure the titlebar is // always at least the height of the traffic lights. .min_h(px(32.)) - .pl_2() .map(|this| { if matches!(cx.window_bounds(), WindowBounds::Fullscreen) { this.pl_2() } else { // Use pixels here instead of a rem-based size because the macOS traffic // lights are a static size, and don't scale with the rest of the UI. - this.pl(px(72.)) + this.pl(px(80.)) } }) .bg(cx.theme().colors().title_bar_background)