Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

hud: narrow corner-label hit region to visible text width

Replaces the full-screen hitbox with one sized to the actual text box:
x starts where the text begins (after the share-area pad), w matches
currentHUDTextBoxWidth. Vertical extent still reaches y=0 so top-edge
taps register.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+15 -5
+15 -5
system/public/aesthetic.computer/lib/disk.mjs
··· 14597 14597 // Update button position to match label position (with slide offset) 14598 14598 const finalX = currentHUDOffset.x + hudAnimationState.slideOffset.x - currentHUDLeftPad; 14599 14599 const finalY = currentHUDOffset.y + hudAnimationState.slideOffset.y; 14600 - // Hit region spans the entire top strip from y=0 so taps at the very top edge 14601 - // register, and extends down through the text's actual height plus small padding. 14602 - const screenW = $api.screen?.width || cachedAPI?.screen?.width || bufferW || 1; 14600 + // Hit region matches the visible text width (not the padded buffer or full screen) 14601 + // and extends up to y=0 so taps at the top edge still register as corner-label taps. 14603 14602 const textOnlyHeight = Math.max( 14604 14603 1, 14605 14604 Math.round( ··· 14610 14609 1, 14611 14610 ), 14612 14611 ); 14612 + const visualTextWidth = Math.max( 14613 + 1, 14614 + Math.round( 14615 + currentHUDTextBoxWidth || 14616 + longestVisibleLineWidth || 14617 + hudBlockWidth || 14618 + 1, 14619 + ), 14620 + ); 14613 14621 const descenderPad = Math.max(2, Math.round(hudBlockHeight * 0.2)); 14614 14622 const finalYClamped = Math.max(0, Math.round(finalY)); 14615 - currentHUDButton.box.x = 0; 14623 + // Text starts after the share-area left-pad, at currentHUDOffset.x (+ slide). 14624 + const textStartX = currentHUDOffset.x + hudAnimationState.slideOffset.x; 14625 + currentHUDButton.box.x = Math.max(0, Math.round(textStartX)); 14616 14626 currentHUDButton.box.y = 0; 14617 - currentHUDButton.box.w = Math.max(1, Math.round(screenW)); 14627 + currentHUDButton.box.w = visualTextWidth; 14618 14628 currentHUDButton.box.h = Math.max(1, finalYClamped + textOnlyHeight + descenderPad); 14619 14629 14620 14630 // Mark HUD button to bypass the global HUD active check (it checks itself)