design-lint: contract/egui-widget: the comp comment tip is a Text

This commit is contained in:
aiongg
2026-11-16 13:23:38 +00:00
parent 98500a9576
commit af3758b54e
+2 -2
View File
@@ -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)