assistant: Remove unneeded wrapping div in ModelSelector (#14024)

This PR removes an unneeded wrapping `div` in the `ModelSelector`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-09 16:40:00 -04:00 committed by GitHub
parent c59d5fbae7
commit 2db06c1567
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ impl RenderOnce for ModelSelector {
})
.trigger(
ButtonLike::new("active-model")
.style(ButtonStyle::Subtle)
.child(
h_flex()
.w_full()
@ -67,14 +68,11 @@ impl RenderOnce for ModelSelector {
),
)
.child(
div().child(
Icon::new(IconName::ChevronDown)
.color(Color::Muted)
.size(IconSize::XSmall),
),
Icon::new(IconName::ChevronDown)
.color(Color::Muted)
.size(IconSize::XSmall),
),
)
.style(ButtonStyle::Subtle)
.tooltip(move |cx| {
Tooltip::for_action("Change Model", &ToggleModelSelector, cx)
}),