Skip to content

Commit

Permalink
play function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ropold committed Feb 22, 2025
1 parent 31490cf commit 45e0263
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function Play(props: Readonly<PlayProps>) {

return (
<div>
<div className="matchId-select">
<label htmlFor="matchIdFilter">Wählen Sie eine Match-ID:</label>
<select
id="matchIdFilter"
Expand All @@ -33,11 +34,11 @@ export default function Play(props: Readonly<PlayProps>) {
</option>
))}
</select>
</div>

<div className="button-group">
<button>Play</button>
<button>Reset</button>
<button>Cheat - show all</button>
</div>

<PlayMemoryCard selectedMatchId={selectedMatchId} selectedMemoriesMatchId={selectedMemoriesMatchId}/>
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/components/styles/PlayMemoryCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,14 @@
gap: 12px;
justify-content: center;
padding: 16px;
}
}

.matchId-select {
width: 600px;
padding: 8px;
border-radius: 4px;
border: 1px solid #ddd;
margin: 16px auto; /* Automatische horizontale Zentrierung */
display: block; /* Damit es die ganze Breite nutzt */
text-align: center;
}

0 comments on commit 45e0263

Please sign in to comment.