From 4bc791b52e9d689fba1ed0e61842cf6cfd61d387 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 05:06:21 +0000 Subject: [PATCH 1/4] A select face is no node of its own: its text is the pick, which its host reports as its value --- crates/ui-widgets/src/pickers/face.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ui-widgets/src/pickers/face.rs b/crates/ui-widgets/src/pickers/face.rs index 262e4aa1f..c7c24cfca 100644 --- a/crates/ui-widgets/src/pickers/face.rs +++ b/crates/ui-widgets/src/pickers/face.rs @@ -54,7 +54,8 @@ pub enum FaceKind { /// and the chevron need, at least a field wide; a [fitted](SelectFace::fit) box is at most a field wide and has no /// floor; a thumbnail alone takes only its own width. A host shows it as the look of one of its parts with /// `ui.face(part, SelectFace::new(text))` over the field well it paints itself, and gives the box the width of its -/// widest text so the width does not change with the pick. A thumbnail goes before the text, or alone. +/// widest text so the width does not change with the pick. A thumbnail goes before the text, or alone. The face is +/// no node of its own: its text is the pick, which every host reports as its own node's value. #[derive(crate::contract::Component, crate::contract::Props)] #[component(sample = SelectFace::sample)] pub struct SelectFace<'a> { @@ -71,7 +72,7 @@ pub struct SelectFace<'a> { #[prop(into)] thumb_caption: Option