Skip to content

Commit

Permalink
feat: adjust game piece margin and add cell spacers to game board layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ehippy committed Dec 21, 2024
1 parent 8b569b6 commit 0653e1d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Binary file added public/img/clear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/GamePiece.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
.gamePiece {
/* background-color: #212529; */
aspect-ratio: 1;
margin: 5px;
margin: 1px;
z-index: 20;
transition: 300ms;
container-type: size;
Expand Down
12 changes: 12 additions & 0 deletions src/views/gameBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,12 @@ export default {
</template>
</template>
<template v-for="x in game.boardWidth">
<template v-for="y in game.boardHeight">
<div class="gameBoardCellSpacer" :style="{ gridRowStart: x, gridColumnStart: y }"></div>
</template>
</template>
<template v-for="target in targetSquares">
<div :class="'highlightCell highlight_' + queuedAction"
:style="{ gridColumnStart: target[0] + 1, gridRowStart: target[1] + 1 }"
Expand Down Expand Up @@ -676,6 +682,12 @@ export default {
height: 1fr;
z-index: 10;
}
.gameBoardCellSpacer {
aspect-ratio: 1;
margin: 1px;
z-index: 10;
transition: 300ms;
}
.highlightCell {
z-index: 30;
Expand Down

0 comments on commit 0653e1d

Please sign in to comment.