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>
This commit is contained in:
William Casarin
2024-02-16 11:38:28 -08:00
parent 4ea82cd332
commit 3870bc9506

View File

@@ -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);