agent_ui: Wrap long ask_user options (#63656)
# Objective Fixes #62955 Long `ask_user` option labels are currently truncated with an ellipsis, which can hide part of the response text. ## Solution Remove truncation from the shared elicitation option label so it uses the label's default multiline wrapping. This affects both single- and multi-select options without changing selection behavior. ## Testing - `cargo fmt --all -- --check` - `cargo test -p agent_ui -- --nocapture` — 429 passed, 0 failed - `cargo build -j 2 -p zed --bin zed` - Manually reproduced the issue using a long `ask_user` option label. - Verified that the complete label wraps without an ellipsis at wide and narrow panel widths. --- Release Notes: - Fixed long `ask_user` options being truncated instead of wrapping.
This commit is contained in:
1 parent
ed8d600464
commit
73ee8fa038
1 file changed
+1
-1
@@ -1823,7 +1823,7 @@ impl<'a> ElicitationCard<'a> {
|
||||
.min_w_0()
|
||||
.flex_1()
|
||||
.gap_0p5()
|
||||
.child(Label::new(option.label).size(LabelSize::Small).truncate())
|
||||
.child(Label::new(option.label).size(LabelSize::Small))
|
||||
.when_some(option.description, |this, description| {
|
||||
this.child(
|
||||
Label::new(description)
|
||||
|
||||
Reference in new issue
Block a user