ui: Add ThreadItem component (#43167)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-11-20 12:45:26 -03:00
committed by GitHub
parent 56401fc99c
commit 73568fc454
3 changed files with 221 additions and 4 deletions
+5 -4
View File
@@ -934,15 +934,16 @@ impl ComponentPreviewPage {
fn render_header(&self, _: &Window, cx: &App) -> impl IntoElement {
v_flex()
.py_12()
.px_16()
.min_w_0()
.w_full()
.p_12()
.gap_6()
.bg(cx.theme().colors().surface_background)
.border_b_1()
.border_color(cx.theme().colors().border)
.child(
v_flex()
.gap_0p5()
.gap_1()
.child(
Label::new(self.component.scope().to_string())
.size(LabelSize::Small)
@@ -959,7 +960,7 @@ impl ComponentPreviewPage {
),
)
.when_some(self.component.description(), |this, description| {
this.child(div().text_sm().child(description))
this.child(Label::new(description).size(LabelSize::Small))
})
}