• Mahmoud Aglan's avatar
    fix: the chess board overflowed any padded container · 13cbc287
    Mahmoud Aglan authored
    ChessBoard sized itself from container.clientWidth, which INCLUDES padding, so
    inside a padded container the board came out exactly the padding too wide. On the
    puzzle screen that pushed the whole page 4px sideways and hung the board off the
    edge. Sizing now measures the container's content box.
    
    resize() had a second bug: it set canvas.width/height (the backing store) but
    never the CSS width/height, so after any resize the element laid out at its
    attribute width — devicePixelRatio times too large. It also now resets the
    transform before scaling rather than relying on the implicit reset.
    
    Both paths share one availableSize(), so they can no longer disagree.
    
    Local audit is clean across all scenes at 360/390/430px.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    13cbc287
Name
Last commit
Last update
..
auth Loading commit data...
backgammon Loading commit data...
chess Loading commit data...
domino Loading commit data...
ludo Loading commit data...
org Loading commit data...
play Loading commit data...
profile Loading commit data...
puzzles Loading commit data...
rank Loading commit data...
rewards Loading commit data...
shop Loading commit data...
social Loading commit data...
tournaments Loading commit data...