fix: reduce borrowing hint font size from 0.5x to 0.25x

The 'n − 1' text above borrow boxes was too large and getting clipped,
making the '1' invisible. Halving the font size should make it fit better.
This commit is contained in:
Thomas Hallock
2025-11-08 06:33:08 -06:00
parent cc54176cb1
commit f5d3de2309

View File

@@ -446,7 +446,7 @@ export function generateSubtractionProblemStackFunction(
spacing: 1pt,
// Show the calculation hint
align(center)[
#text(size: ${(cellSizePt * 0.5).toFixed(1)}pt, fill: gray.darken(30%))[#str(original-digit) 1]
#text(size: ${(cellSizePt * 0.25).toFixed(1)}pt, fill: gray.darken(30%))[#str(original-digit) 1]
],
// Show the borrow box
if show-colors {