From 877f9438fc532d1f0f9fb9ce76250865eb32e36c Mon Sep 17 00:00:00 2001 From: Matt Revell Date: Mon, 25 Aug 2025 18:47:13 -0500 Subject: [PATCH] More consistant formatting for task file location. Update the new process modal to have the path to the file containing the task configuration to be under instead of next to the name. --- crates/debugger_ui/src/new_process_modal.rs | 27 +++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/crates/debugger_ui/src/new_process_modal.rs b/crates/debugger_ui/src/new_process_modal.rs index 7c2ddd074b..f020ebdde1 100644 --- a/crates/debugger_ui/src/new_process_modal.rs +++ b/crates/debugger_ui/src/new_process_modal.rs @@ -1493,24 +1493,25 @@ impl PickerDelegate for DebugDelegate { .indicator_border_color(Some(cx.theme().colors().border_transparent)) }); - let mut list_item = + Some( ListItem::new(SharedString::from(format!("debug-scenario-selection-{ix}"))) .inset(true) .start_slot::(icon) .spacing(ListItemSpacing::Sparse) .toggle_state(selected) - .child(highlighted_location.render(window, cx)); - - if let Some(subtitle_text) = subtitle { - list_item = list_item.child( - div() - .text_xs() - .text_color(cx.theme().colors().text_muted) - .child(subtitle_text), - ); - } - - Some(list_item) + .child( + v_flex() + .items_start() + .child(highlighted_location.render(window, cx)) + .when_some(subtitle.clone(), |this, subtitle_text| { + this.child( + Label::new(subtitle_text) + .size(LabelSize::Small) + .color(Color::Muted), + ) + }), + ), + ) } }