Skip to content

Commit

Permalink
Increase gap between piles (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Jun 4, 2024
1 parent ff859e1 commit f03edbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/utils/pileon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ export const calculateTableEmSize = (
columns: number,
rows: number,
): [number, number] => {
const tableWidthEm = stackWidthEm(4, size) * columns + 0.5 * (columns - 1);
const tableHeightEm =
getCardDimensionsEm(size).height * rows + 0.5 * (rows - 1);
const tableWidthEm = stackWidthEm(4, size) * columns + (columns - 1);
const tableHeightEm = getCardDimensionsEm(size).height * rows + (rows - 1);

return [tableWidthEm, tableHeightEm];
};
Expand Down
4 changes: 2 additions & 2 deletions src/views/Pileon/Pileon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
align-items: center
justify-content: center
width: 100vw
column-gap: 0.5em
row-gap: 0.5em
column-gap: 1em
row-gap: 1em
margin: auto
@media (max-aspect-ratio: 9/17)
Expand Down

0 comments on commit f03edbd

Please sign in to comment.