mirror of
https://github.com/JonasunderscoreJones/BingoGenerator.git
synced 2025-10-22 16:39:19 +02:00
reverted word breaking
This commit is contained in:
parent
dc5ee563ed
commit
2758cdba1c
1 changed files with 3 additions and 3 deletions
|
@ -190,14 +190,14 @@ Bingo Item 25`;
|
||||||
while (cell.scrollHeight > cell.clientHeight || cell.scrollWidth > cell.clientWidth) {
|
while (cell.scrollHeight > cell.clientHeight || cell.scrollWidth > cell.clientWidth) {
|
||||||
fontSize--;
|
fontSize--;
|
||||||
cell.style.fontSize = `${fontSize}px`;
|
cell.style.fontSize = `${fontSize}px`;
|
||||||
if (fontSize < 10) break; // Minimum font size limit
|
if (fontSize < 8) break; // Minimum font size limit
|
||||||
};
|
};
|
||||||
fontSize -= 2; // Reduce font size a bit more for better fit
|
fontSize -= 2; // Reduce font size a bit more for better fit
|
||||||
fontSize = Math.max(fontSize, 8); // Ensure font size doesn't go below 8px
|
fontSize = Math.max(fontSize, 8); // Ensure font size doesn't go below 8px
|
||||||
cell.style.fontSize = `${fontSize}px`;
|
cell.style.fontSize = `${fontSize}px`;
|
||||||
// apply wrapping after font adjustment
|
// apply wrapping after font adjustment
|
||||||
cell.style.wordBreak = 'break-word';
|
//cell.style.wordBreak = 'break-word';
|
||||||
cell.style.overflowWrap = 'break-word';
|
//cell.style.overflowWrap = 'break-word';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue