Skip to content

Commit

Permalink
Use text_ellipsis and adjust padding a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Dec 3, 2024
1 parent 195ba64 commit 49d8c6e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/assistant/src/slash_command_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ impl PickerDelegate for SlashCommandDelegate {
v_flex()
.group(format!("command-entry-label-{ix}"))
.w_full()
.py_0p5()
.min_w(px(250.))
.max_w(px(400.))
.overflow_hidden()
.child(
h_flex()
.gap_1p5()
Expand Down Expand Up @@ -217,10 +217,11 @@ impl PickerDelegate for SlashCommandDelegate {
)),
)
.child(
Label::new(info.description.clone())
.single_line()
.size(LabelSize::Small)
.color(Color::Muted),
div().overflow_hidden().text_ellipsis().child(
Label::new(info.description.clone())
.size(LabelSize::Small)
.color(Color::Muted),
),
),
),
),
Expand Down

0 comments on commit 49d8c6e

Please sign in to comment.