use ui::{icons, widgets::{Status, Takeover}};
let open = self.details.get(self.running); // follows `running` until clicked
div()
.child(
theme.step_row(icons::glyph::Terminal, "Bash", Some("cargo test -p ui".into()), Some("1.4s".into()), false, Some(open))
.id("step-3")
.on_click(cx.listener(|view, _, _, cx| view.details.toggle(view.running))),
)
.when(open, |step| step.child(theme.step_output("step-3-out", stdout)))- Put
.id(..)and.on_click(..)on the row itself, never on a wrapper. expanded: Nonedraws no chevron;Somedraws it and the caller owns the flag.detailtruncates;metais right-aligned and never truncates.step_outputis capped in height and scrolls past it; a wheel over it never scrolls the page.