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
This commit is contained in:
parent
051bad734e
commit
5307b75b2f
1 changed files with 1 additions and 2 deletions
|
@ -74,14 +74,13 @@ impl Render for CollabTitlebarItem {
|
||||||
// Set a non-scaling min-height here to ensure the titlebar is
|
// Set a non-scaling min-height here to ensure the titlebar is
|
||||||
// always at least the height of the traffic lights.
|
// always at least the height of the traffic lights.
|
||||||
.min_h(px(32.))
|
.min_h(px(32.))
|
||||||
.pl_2()
|
|
||||||
.map(|this| {
|
.map(|this| {
|
||||||
if matches!(cx.window_bounds(), WindowBounds::Fullscreen) {
|
if matches!(cx.window_bounds(), WindowBounds::Fullscreen) {
|
||||||
this.pl_2()
|
this.pl_2()
|
||||||
} else {
|
} else {
|
||||||
// Use pixels here instead of a rem-based size because the macOS traffic
|
// 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.
|
// 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)
|
.bg(cx.theme().colors().title_bar_background)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue