assistant: Improve the language model selector (#25125)
This PR includes change such as: - Ensures the popover width is fixed/not dancing around - Ensures the popover is not obscuring the trigger in the buffer and terminal inline assistant scenarios - Removes ellipsis from the trigger button label - Ensures the scrollbar doesn't hide the check icon | Terminal | Prompt Editor | Buffer | |--------|--------|--------| |  |  |  | Release Notes: - N/A
This commit is contained in:
parent
a6006afdd7
commit
2627a5fdbe
5 changed files with 30 additions and 20 deletions
|
@ -61,13 +61,9 @@ impl Render for AssistantModelSelector {
|
|||
h_flex()
|
||||
.gap_0p5()
|
||||
.child(
|
||||
div().max_w_32().child(
|
||||
Label::new(model_name)
|
||||
.size(LabelSize::Small)
|
||||
.color(Color::Muted)
|
||||
.text_ellipsis()
|
||||
.into_any_element(),
|
||||
),
|
||||
Label::new(model_name)
|
||||
.size(LabelSize::Small)
|
||||
.color(Color::Muted),
|
||||
)
|
||||
.child(
|
||||
Icon::new(IconName::ChevronDown)
|
||||
|
@ -84,6 +80,7 @@ impl Render for AssistantModelSelector {
|
|||
cx,
|
||||
)
|
||||
},
|
||||
gpui::Corner::BottomRight,
|
||||
)
|
||||
.with_handle(self.menu_handle.clone())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue