chore: refactor avatar component
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-10-15 10:53:28 +07:00
parent e2edb9dd12
commit cd61a09320
15 changed files with 275 additions and 279 deletions
+3 -2
View File
@@ -93,7 +93,7 @@ impl Render for IssueDetailView {
};
};
let (title, author, picture, status, age, issue_id, content) = {
let (title, author, picture, status, age, issue_id, content, pubkey) = {
let profile_store = ProfileStore::global(cx);
let profile = profile_store.read(cx).get(&issue.pubkey);
let content = if issue.content.is_empty() {
@@ -110,6 +110,7 @@ impl Render for IssueDetailView {
relative_time(issue.created_at),
issue.id,
content,
issue.pubkey,
)
};
@@ -153,7 +154,7 @@ impl Render for IssueDetailView {
.child(
h_flex()
.gap_1()
.child(Avatar::new(&author).picture(picture))
.child(Avatar::new(pubkey).name(author.clone()).picture(picture))
.child(author),
)
.child(
+5 -1
View File
@@ -189,7 +189,11 @@ impl IssuesView {
.child(
h_flex()
.gap_1()
.child(Avatar::new(author.clone()).picture(picture))
.child(
Avatar::new(issue.pubkey)
.name(author.clone())
.picture(picture),
)
.child(div().child(author)),
)
.child(SharedString::from("opened"))