From 2de420a67b1b1fc8929ebe1bccb95af55c4230ba Mon Sep 17 00:00:00 2001 From: moshyfawn Date: Mon, 26 Aug 2024 20:32:32 -0400 Subject: [PATCH] assistant: Fix model selector check icon overflow (#16716) Release Notes: - Fixed assistant model selector check icon overflow for long model names --- crates/assistant/src/model_selector.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/assistant/src/model_selector.rs b/crates/assistant/src/model_selector.rs index 9a53c07dba..8a7946c028 100644 --- a/crates/assistant/src/model_selector.rs +++ b/crates/assistant/src/model_selector.rs @@ -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), + ) + })), ) }