Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

prompt: tighten commit button width (measure MatrixChunky8)

Same fix as the notepat pill: TextButtonSmall's 4px/char assumption
overshoots proportional glyphs, especially around the "(N behind)"
suffix with its narrow parens and spaces. Measure real width and
recenter.

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

+11
+11
system/public/aesthetic.computer/disks/prompt.mjs
··· 5879 5879 commitBtn.reposition({ center: "x", y: buttonY, screen }, commitText); 5880 5880 commitBtn.btn.disabled = false; 5881 5881 } 5882 + // TextButtonSmall sizes w as text.length * 4; MatrixChunky8 is proportional 5883 + // so spaces/parens overshoot. Tighten to the real rendered width and recenter. 5884 + const commitTextWidth = $.text.box( 5885 + commitText, undefined, undefined, undefined, undefined, "MatrixChunky8", 5886 + ).box.width; 5887 + commitBtn.btn.box.w = commitTextWidth + 4; // padL + padR 5888 + commitBtn.btn.box.x = Math.floor((screen.width - commitBtn.btn.box.w) / 2); 5882 5889 const cBox = commitBtn.btn.box; 5883 5890 if (cBox) { 5884 5891 const isHover = commitBtn.btn.over && !commitBtn.btn.down; ··· 5934 5941 // starts at box.x + 2 + 2*spaces. Icon frame (13×9) ends at box.x + 14, 5935 5942 // so 8 spaces (x+18) leaves a 3px gap after the frame. 5936 5943 const notepatLabel = " notepat"; 5944 + <<<<<<< Updated upstream 5937 5945 // TextButtonSmall sizes the box as label.length * 4, but MatrixChunky8 5938 5946 // is proportional (spaces advance only 2px), so the button overshoots. 5939 5947 // Measure the actual rendered width and tighten the box below. ··· 5955 5963 const notepatPos = stackVertically 5956 5964 ? { center: "x", y: buttonY - notepatHeight - stackedGap, screen } 5957 5965 : { x: cBox.x + cBox.w + pairGap, y: buttonY }; 5966 + ======= 5967 + const notepatX = cBox.x + cBox.w + 4; 5968 + >>>>>>> Stashed changes 5958 5969 if (!notepatBtn) { 5959 5970 notepatBtn = new $.ui.TextButtonSmall(notepatLabel, notepatPos); 5960 5971 } else {