Skip to content

Commit

Permalink
Reduce cell width on oversize grids
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-nowak committed Jul 23, 2024
1 parent dbe5e43 commit 71ee253
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/src/stylesheets/module/crosswords/_layout.scss
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 71ee253

Please sign in to comment.