fix(terminal): paint the composer's lists over its ring, and give Effort its chevron

This commit is contained in:
l0ng-ai
2026-10-01 15:27:59 +08:00
parent e74a29336b
commit b5a3aae4a9
+11 -2
View File
@@ -1594,7 +1594,11 @@ impl TerminalView {
}))
.child(label),
)
.when(open, |s| s.child(popup(picker, title, rows, cx)))
// Painted after everything else, so the box's ring and whatever
// else is under the list stays under it.
.when(open, |s| {
s.child(gpui::deferred(popup(picker, title, rows, cx)).with_priority(1))
})
};
let model = claude.then(|| {
@@ -1649,6 +1653,11 @@ impl TerminalView {
.as_deref()
.map(|level| div().text_color(ink).child(effort_label(level))),
)
.child(
Icon::new(IconName::ChevronDown)
.size(px(8.))
.text_color(ink.opacity(0.4)),
)
.into_any_element();
let rows = EFFORT_LEVELS
.iter()
@@ -1932,7 +1941,7 @@ impl TerminalView {
},
))
})
.children(popup)
.children(popup.map(|p| gpui::deferred(p).with_priority(1)))
.child(
div()
.flex()