From be314788b381d9159025e7b9ad1eb3bd07fc8660 Mon Sep 17 00:00:00 2001 From: Hampus Date: Sun, 11 Oct 2026 15:56:15 +0200 Subject: [PATCH] fix(app): pixel-align mobile status indicator notch (#3399) --- fluxer_app/scripts/GenerateAvatarMasks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluxer_app/scripts/GenerateAvatarMasks.ts b/fluxer_app/scripts/GenerateAvatarMasks.ts index 458e09890..0d879bb86 100644 --- a/fluxer_app/scripts/GenerateAvatarMasks.ts +++ b/fluxer_app/scripts/GenerateAvatarMasks.ts @@ -145,7 +145,8 @@ function calculateStatusGeometry(avatarSize: number, isMobile: boolean = false): return baseGeometry; } const phoneWidth = statusSize; - const phoneHeight = Math.round(phoneWidth / DESIGN_RULES.mobileAspectRatio) + DESIGN_RULES.mobilePhoneExtraHeight; + const phoneHeight = + Math.round((phoneWidth / DESIGN_RULES.mobileAspectRatio + DESIGN_RULES.mobilePhoneExtraHeight) / 2) * 2; const phoneRx = Math.round(phoneWidth * DESIGN_RULES.mobileCornerRadius); const bezelHeight = Math.max(1, Math.round(phoneHeight * 0.05)); const phoneX = cutoutCenter - phoneWidth / 2;