Font things
This commit is contained in:
parent
4dc5c30b20
commit
35859f3eef
2 changed files with 2 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ body {
|
||||||
overflow-wrap: normal;
|
overflow-wrap: normal;
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
font-size: 1.5rem; /* Moved font size here */
|
font-size: 1.5rem; /* Moved font size here */
|
||||||
|
line-height: 1.2;
|
||||||
color: var(--cell-text-color, #000);
|
color: var(--cell-text-color, #000);
|
||||||
text-shadow: var(--cell-text-outline, none);
|
text-shadow: var(--cell-text-outline, none);
|
||||||
position: relative; /* Needed for z-index */
|
position: relative; /* Needed for z-index */
|
||||||
|
|
|
||||||
|
|
@ -1568,7 +1568,7 @@ function equalizeCellSizes() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// 4. Determine the target size for square cells
|
// 4. Determine the target size for square cells
|
||||||
const targetSize = Math.max(maxWidthNeeded-maxWidthNeeded*0.1, maxHeightNeeded, minCellSize);
|
const targetSize = Math.max(maxWidthNeeded, maxHeightNeeded, minCellSize);
|
||||||
|
|
||||||
// 5. Apply the calculated fixed size back to the grid
|
// 5. Apply the calculated fixed size back to the grid
|
||||||
board.style.gridTemplateColumns = `repeat(${size}, ${targetSize}px)`;
|
board.style.gridTemplateColumns = `repeat(${size}, ${targetSize}px)`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue