Compare commits

..

4 commits

Author SHA1 Message Date
46161c7a02 added workflow files
All checks were successful
build-sveltekit / build (push) Successful in 38s
2025-08-01 17:20:16 +02:00
ce1ace9207 updated container width 2025-08-01 17:19:41 +02:00
2758cdba1c reverted word breaking 2025-08-01 17:17:36 +02:00
dc5ee563ed updated dependencies 2025-08-01 17:16:01 +02:00
5 changed files with 478 additions and 1378 deletions

View file

@ -1,5 +1,9 @@
name: build-sveltekit name: build-sveltekit
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:
jobs: jobs:
build: build:

39
.github/workflows/build-sveltekit.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: build-sveltekit
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Restore npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Build SvelteKit app
run: npm run build
- name: Save npm cache
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}

1794
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -26,6 +26,8 @@
--settings-input-border-color: #333; --settings-input-border-color: #333;
--shadow-color: rgba(0, 0, 0, 0.3); --shadow-color: rgba(0, 0, 0, 0.3);
--root-width: 2 * calc(100vh - 3rem) + 60px;
} }
[data-theme='light'] { [data-theme='light'] {
@ -142,11 +144,16 @@ body {
background-color: var(--bg-color); background-color: var(--bg-color);
color: var(--text-color); color: var(--text-color);
padding-bottom: 1rem; padding-bottom: 1rem;
width: var(--root-width);
}
.main-content {
width: var(--root-width);
} }
.root-bingo-container { .root-bingo-container {
display: flex; display: flex;
width: 100vw; width: var(--root-width);
height: calc(100vh - 3rem); height: calc(100vh - 3rem);
width: calc(100vw - 1rem); width: calc(100vw - 1rem);
} }
@ -198,8 +205,6 @@ body {
word-wrap: break-word; word-wrap: break-word;
cursor: pointer; cursor: pointer;
margin: 0; margin: 0;
word-break: break-word;
overflow-wrap: break-word;
} }
.bingo-cell:hover, .bingo-cell.clicked:hover { .bingo-cell:hover, .bingo-cell.clicked:hover {

View file

@ -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';
}); });
} }