People Lists CO14: Make contact image clickable

This commit is contained in:
Bu5hm4nn 2023-12-25 16:00:24 -06:00
parent 610c373e48
commit 5b94d26d05

View File

@ -195,7 +195,8 @@ pub(super) fn update(
} else {
app.placeholder_avatar.clone()
};
widgets::paint_avatar(ui, person, &avatar, widgets::AvatarSize::Feed);
let avatar_response = widgets::paint_avatar(ui, person, &avatar, widgets::AvatarSize::Feed);
ui.add_space(20.0);
@ -259,6 +260,9 @@ pub(super) fn update(
},
);
});
if avatar_response.clicked() {
app.set_page(ctx, Page::Person(person.pubkey));
}
});
});
if row_response