title_bar: Use an IconButton for the user menu (#23601)

That's specifically when we're not rendering the user menu with an
Avatar. We were previously rendering a `ButtonLike` with unnecessary
flex styles there. Just a little fine-tune.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-01-24 09:49:50 -03:00 committed by GitHub
parent ad63bdf65b
commit 7b69c4246a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -748,15 +748,8 @@ impl TitleBar {
.into()
})
.trigger(
ButtonLike::new("user-menu")
.child(
h_flex().gap_0p5().child(
Icon::new(IconName::ChevronDown)
.size(IconSize::Small)
.color(Color::Muted),
),
)
.style(ButtonStyle::Subtle)
IconButton::new("user-menu", IconName::ChevronDown)
.icon_size(IconSize::Small)
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
)
}