fix(ui): drop the traffic light inset from the title bar in fullscreen
macOS hides the traffic lights in fullscreen, but the vendored TitleBar kept its 80px left padding, leaving an empty gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -16,3 +16,4 @@ Upstream: crates.io `gpui-component 0.7.1`. Wired in via `[patch.crates-io]` in
16
16
| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |
17
17
| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |
18
18
| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |
19
| `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |
@@ -16,3 +16,4 @@ Upstream: crates.io `gpui-component 0.7.1`. Wired in via `[patch.crates-io]` in16
| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |16
| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |17
| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |17
| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |18
| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |18
| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |19
| `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |@@ -335,7 +335,8 @@ impl RenderOnce for TitleBar {
335
335
.items_center()
336
336
.justify_between()
337
337
.h(TITLE_BAR_HEIGHT)
338
.pl(TITLE_BAR_LEFT_PADDING)
338
// The macOS traffic lights are hidden in fullscreen, so their inset goes too.
339
.when(!window.is_fullscreen(), |this| this.pl(TITLE_BAR_LEFT_PADDING))
339
340
.border_b_1()
340
341
.border_color(cx.theme().title_bar_border)
341
342
.bg(default_title_bar_background(
@@ -335,7 +335,8 @@ impl RenderOnce for TitleBar {335
.items_center()335
.items_center()336
.justify_between()336
.justify_between()337
.h(TITLE_BAR_HEIGHT)337
.h(TITLE_BAR_HEIGHT)338
.pl(TITLE_BAR_LEFT_PADDING)338
// The macOS traffic lights are hidden in fullscreen, so their inset goes too.339
.when(!window.is_fullscreen(), |this| this.pl(TITLE_BAR_LEFT_PADDING))339
.border_b_1()340
.border_b_1()340
.border_color(cx.theme().title_bar_border)341
.border_color(cx.theme().title_bar_border)341
.bg(default_title_bar_background(342
.bg(default_title_bar_background(