commit 3870bc950698588c61d7eaea1c5e2fde4e9b2efc
parent 4ea82cd3326fb1807fdd484839c50980a79464d8
Author: William Casarin <jb55@jb55.com>
Date: Fri, 16 Feb 2024 11:38:28 -0800
pfp: small fix in profile pic loading
I want to tweak the size of the profile pic, this is a small change
that I noticed toward that goal.
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app.rs b/src/app.rs
@@ -490,7 +490,7 @@ fn render_pfp(ui: &mut egui::Ui, img_cache: &mut ImageCache, url: &str) {
match img_cache[&urlkey].ready() {
None => {
- ui.add(Spinner::new().size(40.0));
+ ui.add(Spinner::new().size(pfp_size));
}
Some(Err(_err)) => {
let failed_key = UrlKey::Failed(url).to_u64();
@@ -504,7 +504,7 @@ fn render_pfp(ui: &mut egui::Ui, img_cache: &mut ImageCache, url: &str) {
match img_cache[&failed_key].ready() {
None => {
- ui.add(Spinner::new().size(40.0));
+ ui.add(Spinner::new().size(pfp_size));
}
Some(Err(_e)) => {
//error!("Image load error: {:?}", e);