initial post reply view

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-06-21 11:59:17 -07:00
parent ac0821db79
commit 0b3d6f7e37
8 changed files with 223 additions and 46 deletions

View File

@@ -31,14 +31,27 @@ impl<'cache, 'url> ProfilePic<'cache, 'url> {
.map(|url| ProfilePic::new(cache, url))
}
#[inline]
pub fn default_size() -> f32 {
38.0
}
#[inline]
pub fn medium_size() -> f32 {
32.0
}
#[inline]
pub fn small_size() -> f32 {
24.0
}
#[inline]
pub fn no_pfp_url() -> &'static str {
"https://damus.io/img/no-profile.svg"
}
#[inline]
pub fn size(mut self, size: f32) -> Self {
self.size = size;
self