ui-canvas: the pasteboard's page names read upstream's least layout

This commit is contained in:
bflatastic
2026-11-22 01:41:14 +07:00
parent 9903520550
commit 1b1f519547
@@ -397,7 +397,7 @@ impl Component for Pasteboard<'_> {
.map(|page| {
let run = name_run(page.name.as_ref()?, name_color(cx.style, page.active)).elide();
let width = bounds(&space.view.quad(page.rect)).width();
(width >= cx.least_width(&run)).then(|| cx.layout_at(&run, width).size())
(width >= cx.least(&run).width).then(|| cx.layout_at(&run, width).size())
})
.collect();
for (at, page) in self.pages.iter().enumerate() {