Compare commits

...

2 commits

Author SHA1 Message Date
b7885beb40 rephrased cookie notice
All checks were successful
build-sveltekit / build (push) Successful in 39s
2025-08-01 13:29:53 +02:00
039b38ac8c fixed font scaling on specific widths 2025-08-01 13:29:35 +02:00

View file

@ -190,8 +190,14 @@ Bingo Item 25`;
while (cell.scrollHeight > cell.clientHeight || cell.scrollWidth > cell.clientWidth) {
fontSize--;
cell.style.fontSize = `${fontSize}px`;
if (fontSize < 12) break; // Minimum font size limit
}
if (fontSize < 10) break; // Minimum font size limit
};
fontSize -= 2; // Reduce font size a bit more for better fit
fontSize = Math.max(fontSize, 8); // Ensure font size doesn't go below 8px
cell.style.fontSize = `${fontSize}px`;
// apply wrapping after font adjustment
cell.style.wordBreak = 'break-word';
cell.style.overflowWrap = 'break-word';
});
}
@ -316,7 +322,7 @@ Bingo Item 25`;
</div>
{/if}
<div class="notice-box cookie-notice">
<p>This Website uses functional Cookies to store the Running Bingo Game, Settings and the Entered Bingo Entries.<br><br>They can be deleted in the Settings.</p>
<p>This Website uses functional Cookies to store the Running Game, Settings and the Bingo Entries.<br><br>They can be deleted in the Settings.</p>
</div>
</div>
<div class="bingo-container bingo-grid-container">