mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
assistant: Fix model selector check icon overflow (#16716)
Release Notes: - Fixed assistant model selector check icon overflow for long model names
This commit is contained in:
parent
f64f85eb1e
commit
2de420a67b
1 changed files with 9 additions and 9 deletions
|
@ -190,15 +190,15 @@ impl PickerDelegate for ModelPickerDelegate {
|
|||
})
|
||||
}
|
||||
}),
|
||||
)
|
||||
.child(div().when(model_info.is_selected, |this| {
|
||||
this.child(
|
||||
Icon::new(IconName::Check)
|
||||
.color(Color::Accent)
|
||||
.size(IconSize::Small),
|
||||
)
|
||||
})),
|
||||
),
|
||||
),
|
||||
)
|
||||
.end_slot(div().when(model_info.is_selected, |this| {
|
||||
this.child(
|
||||
Icon::new(IconName::Check)
|
||||
.color(Color::Accent)
|
||||
.size(IconSize::Small),
|
||||
)
|
||||
})),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue