Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
sidebar: Improve toggle button placement when fullscreen on macOS (#49524)
Finn Evers592219c2d96e
diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rsindex 1e64a5e89a3..7ee487f5d49 100644--- a/crates/sidebar/src/sidebar.rs+++ b/crates/sidebar/src/sidebar.rs@@ -1092,10 +1092,11 @@ impl Render for Sidebar {.mt_px().pb_px().pr_1()- .when(cfg!(target_os = "macos"), |this| {- this.pl(px(TRAFFIC_LIGHT_PADDING))- })- .when(cfg!(not(target_os = "macos")), |this| this.pl_2())+ .when_else(+ cfg!(target_os = "macos") && !window.is_fullscreen(),+ |this| this.pl(px(TRAFFIC_LIGHT_PADDING)),+ |this| this.pl_2(),+ ).justify_between().border_b_1().border_color(cx.theme().colors().border)