File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -465,13 +465,15 @@ export function BoardDesignerScreen() {
465465 </ div >
466466 < p className = "hint" > Custom boards can now be sized from 4x4 up to 20x20. Odd heights leave a neutral middle rank empty.</ p >
467467
468+ < div
469+ className = "board-designer-scroll-wrap"
470+ style = { { touchAction : activeBrush ? "none" : undefined } }
471+ >
468472 < div
469473 className = { `board-designer-grid board-theme-${ theme } ` }
470474 style = { {
471475 position : "relative" ,
472- aspectRatio : `${ boardWidth } / ${ boardHeight } ` ,
473476 [ "--designer-cell-size" as string ] : `${ designerCellSize } px` ,
474- touchAction : activeBrush ? "none" : undefined ,
475477 } }
476478 onPointerDown = { ( ) => { if ( activeBrush ) isPaintingRef . current = true ; } }
477479 onPointerMove = { ( e ) => {
@@ -557,6 +559,7 @@ export function BoardDesignerScreen() {
557559 </ div >
558560 ) ) }
559561 </ div >
562+ </ div >
560563
561564 { activeBrush && (
562565 < div className = "board-designer-brush-bar" >
Original file line number Diff line number Diff line change @@ -1388,12 +1388,18 @@ button.mgrid-cell:hover {
13881388 Board Designer
13891389 ============================================================ */
13901390
1391+ .board-designer-scroll-wrap {
1392+ width : 100% ;
1393+ overflow : auto;
1394+ -webkit-overflow-scrolling : touch;
1395+ border-radius : 4px ;
1396+ margin : 8px 0 ;
1397+ }
13911398.board-designer-grid {
13921399 display : inline-block;
13931400 border : 2px solid rgba (148 , 163 , 184 , 0.25 );
13941401 border-radius : 4px ;
13951402 overflow : hidden;
1396- margin : 8px 0 ;
13971403}
13981404.board-row {
13991405 display : flex;
@@ -1468,6 +1474,13 @@ button.mgrid-cell:hover {
14681474.board-designer-square .has-brush {
14691475 cursor : crosshair;
14701476}
1477+ @media (max-width : 640px ) {
1478+ .board-designer-square ,
1479+ .board-designer-mirror {
1480+ min-width : 40px ;
1481+ min-height : 40px ;
1482+ }
1483+ }
14711484/* piece-custom: fills 88% of the square like piece-svg; font-size inherited from .square */
14721485.piece-custom {
14731486 display : flex;
You can’t perform that action at this time.
0 commit comments