From 54b2102e05f39209c0b5e9750b03a6343ab19ece Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Fri, 25 Sep 2026 10:31:14 +0700 Subject: [PATCH] make pixel avatar dynamic --- CHANGELOG.md | 2 ++ crates/signed_ui/src/pixel_avatar.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6a2e2f..9bc62d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ ### Fixed +- Honor an explicit size on the pixel-art avatar, so the repository header's avatar is no longer stuck at the 16px default + ### Removed ### Deprecated diff --git a/crates/signed_ui/src/pixel_avatar.rs b/crates/signed_ui/src/pixel_avatar.rs index 18a56f0..2e74173 100644 --- a/crates/signed_ui/src/pixel_avatar.rs +++ b/crates/signed_ui/src/pixel_avatar.rs @@ -79,7 +79,6 @@ impl RenderOnce for PixelAvatar { } div() - .refine_style(&self.style) .grid() .grid_cols(GRID_SIZE as u16) .grid_rows(GRID_SIZE as u16) @@ -88,6 +87,7 @@ impl RenderOnce for PixelAvatar { .overflow_hidden() .bg(main.opacity(0.16)) .children(cells) + .refine_style(&self.style) } }