Implement fixed viewport with internal scrolling

Restructure app layout to prevent whole-page scrolling. The viewport
is now locked at 100vh with overflow:hidden, and individual content
areas scroll internally.

Architecture changes:
- Lock html/body at 100% height with overflow:hidden
- Fix Layout component to 100vh, Screen to 100% height
- Enable internal scrolling for content areas with flex:1 + overflow-y:auto

New game wizard improvements:
- Split forms into three sections: form-header (fixed), form-content
  (scrollable), form-footer (fixed with arrow navigation)
- Fixes issue where many player names pushed navigation arrows off-screen
- Applied to Player1Step, Player2Step, Player3Step, GameTypeStep

Game list improvements:
- Filter buttons stay fixed at top
- Games container scrolls internally with overflow-y:auto
- "Neues Spiel" button wrapped with flex-shrink:0

Game detail improvements:
- Game controls stay visible while content scrolls

Additional changes:
- Add Playwright test artifact exclusions to .gitignore
- Add Docker build instructions to README.md
- Remove unnecessary setSelectionRange calls from player input steps

Benefits:
- No accidental page scrolling
- Cleaner mobile UX (no address bar show/hide issues)
- Navigation controls always visible
- Predictable, contained scrolling behavior
This commit is contained in:
Frank Schwenk
2025-11-07 14:23:03 +01:00
parent 65aaa92359
commit 076d6ced36
14 changed files with 247 additions and 153 deletions

5
.gitignore vendored
View File

@@ -25,3 +25,8 @@ pnpm-debug.log*
.gitea .gitea
dev/.gitea dev/.gitea
# Playwright test artifacts
playwright-report/
test-results/
playwright/.cache/

View File

@@ -81,6 +81,12 @@ npm run test:record # Record browser interactions with Playwright
npm run test:e2e # Run all recorded browser automation scripts npm run test:e2e # Run all recorded browser automation scripts
``` ```
### Building with Docker
```bash
# Build for production using Docker
docker run -it -v $(pwd):/app -w /app --rm node:latest npx astro build
```
## 🧪 Testing ## 🧪 Testing
The project uses **Playwright** for browser automation and recording. This allows you to record interactions once and replay them anytime, making it easy to test repetitive workflows. The project uses **Playwright** for browser automation and recording. This allows you to record interactions once and replay them anytime, making it easy to test repetitive workflows.

View File

@@ -10,8 +10,9 @@
<style> <style>
#app-root { #app-root {
min-height: 100vh; height: 100%;
width: 100%; width: 100%;
overflow: hidden;
} }
/* Progressive enhancement styles */ /* Progressive enhancement styles */

View File

@@ -19,14 +19,27 @@
.screen-content { .screen-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; height: 100%;
padding: 20px; padding: 20px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
min-height: 0;
} }
.game-detail {
display: flex;
flex-direction: column;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
padding: var(--space-md);
min-height: 0;
}
.game-title { .game-title {
font-size: 24px; font-size: 24px;
color: #ccc; color: #ccc;
flex-shrink: 0;
} }
.game-header { .game-header {
display: flex; display: flex;
@@ -34,12 +47,14 @@
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%; width: 100%;
flex-shrink: 0;
} }
.scores-container { .scores-container {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
gap: 32px; gap: 32px;
min-height: 0; min-height: 0;
flex-shrink: 0;
} }
.player-score { .player-score {
flex: 1; flex: 1;
@@ -202,8 +217,10 @@
flex-direction: row; flex-direction: row;
gap: 24px; gap: 24px;
margin: 40px 0 0 0; margin: 40px 0 0 0;
padding-bottom: var(--space-xl);
width: 100%; width: 100%;
justify-content: center; justify-content: center;
flex-shrink: 0;
} }
.franky .player-name { .franky .player-name {
font-weight: bold; font-weight: bold;

View File

@@ -23,8 +23,9 @@
.game-list { .game-list {
width: 100%; width: 100%;
flex: 1; display: flex;
overflow-y: auto; flex-direction: column;
min-height: 0;
} }
/* Filter buttons with improved symmetry */ /* Filter buttons with improved symmetry */
@@ -36,6 +37,7 @@
border-radius: var(--radius-md); border-radius: var(--radius-md);
overflow: hidden; overflow: hidden;
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
flex-shrink: 0;
} }
.filter-button { .filter-button {
@@ -71,6 +73,11 @@
flex-direction: column; flex-direction: column;
gap: var(--space-md); gap: var(--space-md);
margin-top: var(--space-lg); margin-top: var(--space-lg);
flex: 1;
overflow-y: auto;
overflow-x: hidden;
min-height: 0;
padding-bottom: var(--space-md);
} }
/* Game item with better symmetry and spacing */ /* Game item with better symmetry and spacing */

View File

@@ -56,7 +56,7 @@ export default function GameList({
]; ];
return ( return (
<div className={styles['game-list'] + ' ' + styles['games-container']}> <div className={styles['game-list']}>
<div className={styles['filter-buttons']}> <div className={styles['filter-buttons']}>
{filterButtons.map(({ key, label, ariaLabel }) => ( {filterButtons.map(({ key, label, ariaLabel }) => (
<Button <Button
@@ -71,10 +71,11 @@ export default function GameList({
))} ))}
</div> </div>
{filteredGames.length === 0 ? ( <div className={styles['games-container']}>
<div className={styles['empty-state']}>Keine Spiele vorhanden</div> {filteredGames.length === 0 ? (
) : ( <div className={styles['empty-state']}>Keine Spiele vorhanden</div>
filteredGames.map(game => { ) : (
filteredGames.map(game => {
const playerNames = getPlayerNames(game); const playerNames = getPlayerNames(game);
const scores = getScores(game); const scores = getScores(game);
@@ -121,7 +122,8 @@ export default function GameList({
</Card> </Card>
); );
}) })
)} )}
</div>
</div> </div>
); );
} }

View File

@@ -13,10 +13,12 @@
.screen-content { .screen-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; height: 100%;
padding: var(--space-lg); padding: var(--space-lg);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
min-height: 0;
} }
.screen-title { .screen-title {
font-size: var(--font-size-xxl); font-size: var(--font-size-xxl);
@@ -122,11 +124,31 @@
background: var(--color-surface); background: var(--color-surface);
border-radius: var(--radius-xl); border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg); box-shadow: var(--shadow-lg);
padding: var(--space-xl) var(--space-lg) var(--space-lg) var(--space-lg); padding: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--space-lg);
border: 1px solid var(--color-border); border: 1px solid var(--color-border);
flex: 1;
min-height: 0;
overflow: hidden;
}
.form-header {
flex-shrink: 0;
padding: var(--space-xl) var(--space-lg) var(--space-md) var(--space-lg);
}
.form-content {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 0 var(--space-lg);
min-height: 0;
}
.form-footer {
flex-shrink: 0;
padding: var(--space-lg);
} }
.progress-indicator { .progress-indicator {
display: flex; display: flex;

View File

@@ -26,29 +26,36 @@ export const GameTypeStep = ({ onNext, onCancel, initialValue = '' }: GameTypeSt
return ( return (
<form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spielart auswählen"> <form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spielart auswählen">
<div className={styles['screen-title']}>Spielart auswählen</div> <div className={styles['form-header']}>
<div className={styles['progress-indicator']} style={{ marginBottom: 24 }}> <div className={styles['screen-title']}>Spielart auswählen</div>
<span className={styles['progress-dot']} /> <div className={styles['progress-indicator']} style={{ marginBottom: 24 }}>
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot'] + ' ' + styles['active']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot'] + ' ' + styles['active']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} />
</div>
</div> </div>
<div className={styles['game-type-selection']}>
{gameTypes.map(type => ( <div className={styles['form-content']}>
<button <div className={styles['game-type-selection']}>
key={type} {gameTypes.map(type => (
type="button" <button
className={`${styles['game-type-btn']} ${gameType === type ? styles.selected : ''}`} key={type}
onClick={() => handleSelect(type)} type="button"
> className={`${styles['game-type-btn']} ${gameType === type ? styles.selected : ''}`}
{type} onClick={() => handleSelect(type)}
</button> >
))} {type}
</button>
))}
</div>
</div> </div>
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 48 }}>
<div className={styles['form-footer']}>
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<button <button
type="button" type="button"
className={styles['arrow-btn']} className={styles['arrow-btn']}
@@ -78,6 +85,7 @@ export const GameTypeStep = ({ onNext, onCancel, initialValue = '' }: GameTypeSt
> >
&#8594; &#8594;
</button> </button>
</div>
</div> </div>
</form> </form>
); );

View File

@@ -22,10 +22,6 @@ export const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue
const el = inputRef.current; const el = inputRef.current;
if (el) { if (el) {
el.focus(); el.focus();
const end = el.value.length;
try {
el.setSelectionRange(end, end);
} catch {}
} }
}, []); }, []);
@@ -85,17 +81,21 @@ export const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue
return ( return (
<form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 1 Eingabe" autoComplete="off"> <form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 1 Eingabe" autoComplete="off">
<div className={styles['screen-title']}>Name Spieler 1</div> <div className={styles['form-header']}>
<div className={styles['progress-indicator']} style={{ marginBottom: UI_CONSTANTS.MARGIN_BOTTOM_MEDIUM }}> <div className={styles['screen-title']}>Name Spieler 1</div>
<span className={styles['progress-dot'] + ' ' + styles['active']} /> <div className={styles['progress-indicator']} style={{ marginBottom: UI_CONSTANTS.MARGIN_BOTTOM_MEDIUM }}>
<span className={styles['progress-dot']} /> <span className={styles['progress-dot'] + ' ' + styles['active']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} />
</div>
</div> </div>
<div className={styles['player-input'] + ' ' + styles['player1-input']} style={{ marginBottom: UI_CONSTANTS.MARGIN_BOTTOM_LARGE, position: 'relative' }}>
<div className={styles['form-content']}>
<div className={styles['player-input'] + ' ' + styles['player1-input']} style={{ marginBottom: UI_CONSTANTS.MARGIN_BOTTOM_LARGE, position: 'relative' }}>
<label htmlFor="player1-input" style={{ fontSize: UI_CONSTANTS.LABEL_FONT_SIZE, fontWeight: 600 }}>Spieler 1</label> <label htmlFor="player1-input" style={{ fontSize: UI_CONSTANTS.LABEL_FONT_SIZE, fontWeight: 600 }}>Spieler 1</label>
<div style={{ position: 'relative', width: '100%' }}> <div style={{ position: 'relative', width: '100%' }}>
<input <input
@@ -209,29 +209,25 @@ export const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue
)} )}
</div> </div>
)} )}
</div>
{error && (
<div
className={styles['validation-error']}
style={{
marginBottom: 16,
...ERROR_STYLES.CONTAINER
}}
role="alert"
aria-live="polite"
>
<span style={ERROR_STYLES.ICON}></span>
{error}
</div> </div>
)} {error && (
{isModalOpen && ( <div
<PlayerSelectModal className={styles['validation-error']}
players={playerNameHistory} style={{
onSelect={handleModalSelect} marginBottom: 16,
onClose={() => setIsModalOpen(false)} ...ERROR_STYLES.CONTAINER
/> }}
)} role="alert"
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 48 }}> aria-live="polite"
>
<span style={ERROR_STYLES.ICON}></span>
{error}
</div>
)}
</div>
<div className={styles['form-footer']}>
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<button <button
type="button" type="button"
className={styles['arrow-btn']} className={styles['arrow-btn']}
@@ -250,7 +246,16 @@ export const Player1Step = ({ playerNameHistory, onNext, onCancel, initialValue
> >
&#8594; &#8594;
</button> </button>
</div>
</div> </div>
{isModalOpen && (
<PlayerSelectModal
players={playerNameHistory}
onSelect={handleModalSelect}
onClose={() => setIsModalOpen(false)}
/>
)}
</form> </form>
); );
}; };

View File

@@ -19,10 +19,6 @@ export const Player2Step = ({ playerNameHistory, onNext, onCancel, initialValue
const el = inputRef.current; const el = inputRef.current;
if (el) { if (el) {
el.focus(); el.focus();
const end = el.value.length;
try {
el.setSelectionRange(end, end);
} catch {}
} }
}, []); }, []);
@@ -61,17 +57,21 @@ export const Player2Step = ({ playerNameHistory, onNext, onCancel, initialValue
return ( return (
<form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 2 Eingabe" autoComplete="off"> <form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 2 Eingabe" autoComplete="off">
<div className={styles['screen-title']}>Name Spieler 2</div> <div className={styles['form-header']}>
<div className={styles['progress-indicator']} style={{ marginBottom: 24 }}> <div className={styles['screen-title']}>Name Spieler 2</div>
<span className={styles['progress-dot']} /> <div className={styles['progress-indicator']} style={{ marginBottom: 24 }}>
<span className={styles['progress-dot'] + ' ' + styles['active']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot'] + ' ' + styles['active']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} />
</div>
</div> </div>
<div className={styles['player-input'] + ' ' + styles['player2-input']} style={{ marginBottom: 32, position: 'relative' }}>
<div className={styles['form-content']}>
<div className={styles['player-input'] + ' ' + styles['player2-input']} style={{ marginBottom: 32, position: 'relative' }}>
<label htmlFor="player2-input" style={{ fontSize: '1.3rem', fontWeight: 600 }}>Spieler 2</label> <label htmlFor="player2-input" style={{ fontSize: '1.3rem', fontWeight: 600 }}>Spieler 2</label>
<div style={{ position: 'relative', width: '100%' }}> <div style={{ position: 'relative', width: '100%' }}>
<input <input
@@ -129,27 +129,31 @@ export const Player2Step = ({ playerNameHistory, onNext, onCancel, initialValue
))} ))}
</div> </div>
)} )}
</div>
{error && <div className={styles['validation-error']} style={{ marginBottom: 16 }}>{error}</div>}
</div> </div>
{error && <div className={styles['validation-error']} style={{ marginBottom: 16 }}>{error}</div>}
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 48 }}> <div className={styles['form-footer']}>
<button <div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
type="button" <button
className={styles['arrow-btn']} type="button"
aria-label="Zurück" className={styles['arrow-btn']}
onClick={onCancel} aria-label="Zurück"
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }} onClick={onCancel}
> style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }}
&#8592; >
</button> &#8592;
<button </button>
type="submit" <button
className={styles['arrow-btn']} type="submit"
aria-label="Weiter" className={styles['arrow-btn']}
disabled={!player2.trim()} aria-label="Weiter"
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer', opacity: !player2.trim() ? 0.5 : 1 }} disabled={!player2.trim()}
> style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer', opacity: !player2.trim() ? 0.5 : 1 }}
&#8594; >
</button> &#8594;
</button>
</div>
</div> </div>
</form> </form>
); );

View File

@@ -18,10 +18,6 @@ export const Player3Step = ({ playerNameHistory, onNext, onCancel, initialValue
const el = inputRef.current; const el = inputRef.current;
if (el) { if (el) {
el.focus(); el.focus();
const end = el.value.length;
try {
el.setSelectionRange(end, end);
} catch {}
} }
}, []); }, []);
@@ -58,17 +54,21 @@ export const Player3Step = ({ playerNameHistory, onNext, onCancel, initialValue
return ( return (
<form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 3 Eingabe" autoComplete="off"> <form className={styles['new-game-form']} onSubmit={handleSubmit} aria-label="Spieler 3 Eingabe" autoComplete="off">
<div className={styles['screen-title']}>Name Spieler 3 (optional)</div> <div className={styles['form-header']}>
<div className={styles['progress-indicator']} style={{ marginBottom: 24 }}> <div className={styles['screen-title']}>Name Spieler 3 (optional)</div>
<span className={styles['progress-dot']} /> <div className={styles['progress-indicator']} style={{ marginBottom: 24 }}>
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot'] + ' ' + styles['active']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot'] + ' ' + styles['active']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} /> <span className={styles['progress-dot']} />
<span className={styles['progress-dot']} />
</div>
</div> </div>
<div className={styles['player-input'] + ' ' + styles['player3-input']} style={{ marginBottom: 32, position: 'relative' }}>
<div className={styles['form-content']}>
<div className={styles['player-input'] + ' ' + styles['player3-input']} style={{ marginBottom: 32, position: 'relative' }}>
<label htmlFor="player3-input" style={{ fontSize: '1.3rem', fontWeight: 600 }}>Spieler 3 (optional)</label> <label htmlFor="player3-input" style={{ fontSize: '1.3rem', fontWeight: 600 }}>Spieler 3 (optional)</label>
<div style={{ position: 'relative', width: '100%' }}> <div style={{ position: 'relative', width: '100%' }}>
<input <input
@@ -126,35 +126,39 @@ export const Player3Step = ({ playerNameHistory, onNext, onCancel, initialValue
))} ))}
</div> </div>
)} )}
</div>
</div> </div>
<div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 48 }}>
<button <div className={styles['form-footer']}>
type="button" <div className={styles['arrow-nav']} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
className={styles['arrow-btn']}
aria-label="Zurück"
onClick={onCancel}
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }}
>
&#8592;
</button>
<div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>
<button <button
type="button" type="button"
onClick={handleSkip}
className={styles['quick-pick-btn']}
style={{ fontSize: '1.1rem', padding: '12px 20px', borderRadius: 8, background: '#333', color: '#fff', border: 'none', cursor: 'pointer' }}
>
Überspringen
</button>
<button
type="submit"
className={styles['arrow-btn']} className={styles['arrow-btn']}
aria-label="Weiter" aria-label="Zurück"
disabled={!player3.trim()} onClick={onCancel}
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer', opacity: !player3.trim() ? 0.5 : 1 }} style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }}
> >
&#8594; &#8592;
</button> </button>
<div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>
<button
type="button"
onClick={handleSkip}
className={styles['quick-pick-btn']}
style={{ fontSize: '1.1rem', padding: '12px 20px', borderRadius: 8, background: '#333', color: '#fff', border: 'none', cursor: 'pointer' }}
>
Überspringen
</button>
<button
type="submit"
className={styles['arrow-btn']}
aria-label="Weiter"
disabled={!player3.trim()}
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer', opacity: !player3.trim() ? 0.5 : 1 }}
>
&#8594;
</button>
</div>
</div> </div>
</div> </div>
</form> </form>

View File

@@ -23,15 +23,17 @@ export default function GameListScreen({
}: GameListScreenProps) { }: GameListScreenProps) {
return ( return (
<Screen> <Screen>
<Button <div style={{ flexShrink: 0 }}>
variant="primary" <Button
size="large" variant="primary"
onClick={onShowNewGame} size="large"
aria-label="Neues Spiel starten" onClick={onShowNewGame}
style={{ width: '100%', marginBottom: '24px' }} aria-label="Neues Spiel starten"
> style={{ width: '100%', marginBottom: '24px' }}
+ Neues Spiel >
</Button> + Neues Spiel
</Button>
</div>
<GameList <GameList
games={games} games={games}

View File

@@ -1,5 +1,6 @@
.layout { .layout {
min-height: 100vh; height: 100vh;
overflow: hidden;
background-color: var(--color-background); background-color: var(--color-background);
color: var(--color-text); color: var(--color-text);
display: flex; display: flex;
@@ -12,13 +13,19 @@
margin: 0 auto; margin: 0 auto;
padding: var(--space-md); padding: var(--space-md);
width: 100%; width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
min-height: 0;
} }
.screen { .screen {
width: 100%; width: 100%;
min-height: 100vh; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
min-height: 0;
} }
/* Tablet optimizations */ /* Tablet optimizations */

View File

@@ -85,11 +85,15 @@
} }
} }
html, body {
height: 100%;
overflow: hidden;
}
body { body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--color-background); background-color: var(--color-background);
color: var(--color-text); color: var(--color-text);
min-height: 100vh;
overscroll-behavior: none; overscroll-behavior: none;
line-height: 1.5; line-height: 1.5;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;