From af3758b54e10eca9f489a1e2539e6861001b355f Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 13:23:38 +0000 Subject: [PATCH] design-lint: contract/egui-widget: the comp comment tip is a Text --- crates/layers/src/ui/comps/body.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/layers/src/ui/comps/body.rs b/crates/layers/src/ui/comps/body.rs index fe2cd9427..50e54d466 100644 --- a/crates/layers/src/ui/comps/body.rs +++ b/crates/layers/src/ui/comps/body.rs @@ -277,9 +277,9 @@ pub(super) fn show_list(ui: &mut Ui, stack: &mut BodyCx<'_>, selected: &RefCell< if let Some(comp) = comp_at(cx.comps, item.at) && !comp.comment.is_empty() { - let comment: &str = &comp.comment; + let comment = comp.comment.clone(); item.tip(move |ui| { - ui.label(comment); + let _ = Text::new(comment).show(ui); }); } build_row(cx, item.at)