From af4b1c2bb6d68e686f37be87c270319702e9a188 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sun, 19 Apr 2026 15:03:04 -0700 Subject: [PATCH] chat: dock online counter beneath the HUD corner label Presence Y now derives from the HUD label's reported box (falls back to 12px when unavailable), so the counter always clears the piece's corner label instead of colliding with it at y=2. Co-Authored-By: Claude Opus 4.7 (1M context) --- system/public/aesthetic.computer/disks/chat.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/system/public/aesthetic.computer/disks/chat.mjs b/system/public/aesthetic.computer/disks/chat.mjs index 3cadaa018e..4b0f7d0d43 100644 --- a/system/public/aesthetic.computer/disks/chat.mjs +++ b/system/public/aesthetic.computer/disks/chat.mjs @@ -1810,9 +1810,14 @@ function paint( const qrTotalWidth = qrSize > 0 ? qrSize + 6 : 0; const presenceX = 6 + qrTotalWidth; - // Sit near the top of the screen, above the News/r8dio banner. + // Sit just below the HUD corner label so the counter doesn't have to + // dodge it horizontally. Falls back to a sensible default when the HUD + // label hasn't reported a box yet. const matrixChunky8Height = 8; - const presenceY = 2; + const hudLabelBottom = hudLabelBox + ? (hudLabelBox.y ?? 0) + (hudLabelBox.h ?? 0) + : 12; + const presenceY = hudLabelBottom + 3; const onlineFgColor = theme?.timestamp || 160; const tickerLeftEdge = screen.width - 230; // Reserve space for News/r8Dio -- 2.51.2