debugger: Show child sessions as indented and ensure they're next to the parent session (#32939)

Closes #ISSUE

Release Notes:

- debugger: Tweaked how child sessions are shown in the session list.
This commit is contained in:
Piotr Osiewicz 2025-06-18 12:50:39 +02:00 committed by GitHub
parent 131f2857a5
commit 8e4031815d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 11 deletions

View file

@ -125,7 +125,7 @@ impl DebugSession {
&self.running_state
}
pub(crate) fn label_element(&self, cx: &App) -> AnyElement {
pub(crate) fn label_element(&self, depth: usize, cx: &App) -> AnyElement {
let label = self.label(cx);
let is_terminated = self
@ -153,6 +153,7 @@ impl DebugSession {
};
h_flex()
.ml(depth * px(16.0))
.gap_2()
.when_some(icon, |this, indicator| this.child(indicator))
.justify_between()