We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0017bfa commit 01e49f2Copy full SHA for 01e49f2
1 file changed
crates/re_data_ui/src/component_name.rs
@@ -20,6 +20,14 @@ impl DataUi for ComponentName {
20
ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Extend);
21
ui.label(format!("Full name: {}", self.full_name()));
22
23
+ // Only show the first line of the docs:
24
+ if let Some(markdown) = re_types_registry::components::registry()
25
+ .get(self)
26
+ .and_then(|info| info.docstring_md.lines().next())
27
+ {
28
+ ui.markdown_ui(egui::Id::new(self), markdown);
29
+ }
30
+
31
if let Some(url) = self.doc_url() {
32
ui.re_hyperlink("Full documentation", url);
33
}
0 commit comments