Skip to content

Commit

Permalink
Styling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nathell committed Dec 2, 2020
1 parent bf83682 commit 85ec1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion resources/public/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

.board {
display: grid;
grid-template-rows: auto;
width: 500px;
height: 500px;
background-color: #ccc;
Expand Down
3 changes: 2 additions & 1 deletion src/cljs/solitaire/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
(let [[height width] @(rf/subscribe [::subs/board-dimensions])]
(into
[:div.board
{:style {:grid-template-columns (string/join " " (repeat width "1fr"))}}]
{:style {:grid-template-columns (string/join " " (repeat width "1fr"))
:grid-template-rows (string/join " " (repeat height "1fr"))}}]
(for [y (range height)
x (range width)]
[field-view @(rf/subscribe [::subs/field x y])]))))
Expand Down

0 comments on commit 85ec1db

Please sign in to comment.