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:
moshyfawn 2024-08-26 20:32:32 -04:00 committed by GitHub
parent f64f85eb1e
commit 2de420a67b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
)
})),
)
}