From dbe5e43e0b15cc52ee3450612113af3d69c0a312 Mon Sep 17 00:00:00 2001 From: Andrew Nowak Date: Mon, 22 Jul 2024 18:05:05 +0100 Subject: [PATCH] resize the crossword grid by dimensions, not the type --- .../crosswords/accessibleCrosswordContent.scala.html | 2 +- .../fragments/crosswords/crosswordContent.scala.html | 2 +- .../projects/common/modules/crosswords/crossword.js | 2 +- static/src/stylesheets/module/crosswords/_cell.scss | 4 ++-- .../src/stylesheets/module/crosswords/_layout.scss | 4 ++-- static/src/stylesheets/module/crosswords/_vars.scss | 12 +----------- 6 files changed, 8 insertions(+), 18 deletions(-) diff --git a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html index c3fd85cea44e..ff5519291b41 100644 --- a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html +++ b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html @@ -9,7 +9,7 @@
-
+

Blanks

diff --git a/applications/app/views/fragments/crosswords/crosswordContent.scala.html b/applications/app/views/fragments/crosswords/crosswordContent.scala.html index 55de2576c92c..2eee10bf2172 100644 --- a/applications/app/views/fragments/crosswords/crosswordContent.scala.html +++ b/applications/app/views/fragments/crosswords/crosswordContent.scala.html @@ -17,7 +17,7 @@ data-crossword-data="@Json.stringify(Json.toJson(crosswordPage.crossword))">
+ class="crossword__container crossword__container--@{crosswordPage.crossword.dimensions.cols}cell"> @* The following is a fallback for when JavaScript is not enabled *@
diff --git a/static/src/javascripts/projects/common/modules/crosswords/crossword.js b/static/src/javascripts/projects/common/modules/crosswords/crossword.js index 181708aa65bd..4803001e1927 100644 --- a/static/src/javascripts/projects/common/modules/crosswords/crossword.js +++ b/static/src/javascripts/projects/common/modules/crosswords/crossword.js @@ -749,7 +749,7 @@ class Crossword extends Component { return (