diff --git a/static/src/stylesheets/module/crosswords/_layout.scss b/static/src/stylesheets/module/crosswords/_layout.scss index 7291a1b6ee54..975937bc0694 100644 --- a/static/src/stylesheets/module/crosswords/_layout.scss +++ b/static/src/stylesheets/module/crosswords/_layout.scss @@ -1,7 +1,8 @@ @use "sass:math"; @function xword-grid-dimensions($cells) { - @return $cells * ($xword-cell-width + $xword-border-width) + $xword-border-width; + $cell-width: if($cells <= 17, $xword-cell-width, $xword-cell-width-small); + @return $cells * ($cell-width + $xword-border-width) + $xword-border-width; } @each $cells in $xword-cell-sizes {