Change maximum height of TitleBar (#9758)

<img width="209" alt="image"
src="https://github.com/zed-industries/zed/assets/38318044/0dcc4d0b-db9e-4eba-aa36-5c35f185e7e3">

Release Notes:

- Fixed alignment of items in the title bar
([#9709](https://github.com/zed-industries/zed/issues/9709)).
This commit is contained in:
Aaron Ruan 2024-03-25 22:45:19 +08:00 committed by GitHub
parent a7047f67fb
commit f83884518a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ pub struct TitleBar {
impl TitleBar {
#[cfg(not(target_os = "windows"))]
pub fn height(cx: &mut WindowContext) -> Pixels {
(1.75 * cx.rem_size()).max(px(32.))
(1.75 * cx.rem_size()).max(px(34.))
}
#[cfg(target_os = "windows")]