From 3870bc950698588c61d7eaea1c5e2fde4e9b2efc Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 16 Feb 2024 11:38:28 -0800 Subject: [PATCH] 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 --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index ecd7b45..5050bf6 100644 --- 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);