fix formatting

This commit is contained in:
jglad
2025-01-31 08:41:25 +01:00
parent 803f427f77
commit cd72cc36e8
7 changed files with 58 additions and 25 deletions

View File

@@ -113,9 +113,13 @@ impl<'a> PostView<'a> {
.get_profile_by_pubkey(txn, self.poster.pubkey.bytes())
.as_ref()
.ok()
.and_then(|p| Some(ui::ProfilePic::from_profile(self.img_cache, p)?
.size(pfp_size)
.border(2.0)));
.and_then(|p| {
Some(
ui::ProfilePic::from_profile(self.img_cache, p)?
.size(pfp_size)
.border(2.0),
)
});
if let Some(pfp) = poster_pfp {
ui.add(pfp);