mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
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:
parent
c59d5fbae7
commit
2db06c1567
1 changed files with 4 additions and 6 deletions
|
@ -49,6 +49,7 @@ impl RenderOnce for ModelSelector {
|
||||||
})
|
})
|
||||||
.trigger(
|
.trigger(
|
||||||
ButtonLike::new("active-model")
|
ButtonLike::new("active-model")
|
||||||
|
.style(ButtonStyle::Subtle)
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
|
@ -67,14 +68,11 @@ impl RenderOnce for ModelSelector {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
div().child(
|
Icon::new(IconName::ChevronDown)
|
||||||
Icon::new(IconName::ChevronDown)
|
.color(Color::Muted)
|
||||||
.color(Color::Muted)
|
.size(IconSize::XSmall),
|
||||||
.size(IconSize::XSmall),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.style(ButtonStyle::Subtle)
|
|
||||||
.tooltip(move |cx| {
|
.tooltip(move |cx| {
|
||||||
Tooltip::for_action("Change Model", &ToggleModelSelector, cx)
|
Tooltip::for_action("Change Model", &ToggleModelSelector, cx)
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue