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.
This commit is contained in:
parent
5aff16e389
commit
877f9438fc
1 changed files with 14 additions and 13 deletions
|
@ -1493,24 +1493,25 @@ impl PickerDelegate for DebugDelegate {
|
||||||
.indicator_border_color(Some(cx.theme().colors().border_transparent))
|
.indicator_border_color(Some(cx.theme().colors().border_transparent))
|
||||||
});
|
});
|
||||||
|
|
||||||
let mut list_item =
|
Some(
|
||||||
ListItem::new(SharedString::from(format!("debug-scenario-selection-{ix}")))
|
ListItem::new(SharedString::from(format!("debug-scenario-selection-{ix}")))
|
||||||
.inset(true)
|
.inset(true)
|
||||||
.start_slot::<IconWithIndicator>(icon)
|
.start_slot::<IconWithIndicator>(icon)
|
||||||
.spacing(ListItemSpacing::Sparse)
|
.spacing(ListItemSpacing::Sparse)
|
||||||
.toggle_state(selected)
|
.toggle_state(selected)
|
||||||
.child(highlighted_location.render(window, cx));
|
.child(
|
||||||
|
v_flex()
|
||||||
if let Some(subtitle_text) = subtitle {
|
.items_start()
|
||||||
list_item = list_item.child(
|
.child(highlighted_location.render(window, cx))
|
||||||
div()
|
.when_some(subtitle.clone(), |this, subtitle_text| {
|
||||||
.text_xs()
|
this.child(
|
||||||
.text_color(cx.theme().colors().text_muted)
|
Label::new(subtitle_text)
|
||||||
.child(subtitle_text),
|
.size(LabelSize::Small)
|
||||||
);
|
.color(Color::Muted),
|
||||||
}
|
)
|
||||||
|
}),
|
||||||
Some(list_item)
|
),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue