mirror of
https://github.com/JonasunderscoreJones/BingoGenerator.git
synced 2025-10-23 00:29:18 +02:00
fixed tile scaling on different bingo dimensions
This commit is contained in:
parent
4bd946b75e
commit
b141f2eb73
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ Bingo Item 25`;
|
|||
<div class="bingo-grid" style="grid-template-columns: repeat({cols}, 1fr);">
|
||||
{#each grid as row}
|
||||
{#each row as cell}
|
||||
<button class="bingo-cell"
|
||||
<button class="bingo-cell" style="width: calc((100vh - 10rem)/ {cols}); height: calc((100vh - 10rem)/ {rows});"
|
||||
on:click={() => { cell.clicked = !cell.clicked; cellClicked(); }}
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Enter' || event.key === ' ') { // Handle Enter or Space key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue