From 92979bc9026136cd02c2a4656b497f789c3d0c92 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Wed, 18 Feb 2026 22:45:49 +0100 Subject: [PATCH] sidebar: Improve toggle button placement when fullscreen on macOS (#49524) | Before | After | | --- | --- | | grafik | grafik | Release Notes: - N/A --- crates/sidebar/src/sidebar.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index 1e64a5e89a..7ee487f5d4 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)