add stage and bombs to window mode

This commit is contained in:
CutieCat2804 2024-10-16 20:23:07 +02:00
parent 2d7a6fc848
commit 4c3bbc4697
2 changed files with 6 additions and 9 deletions

View File

@ -20,7 +20,7 @@ const LeaderboardButton = ({
return (
<Dialog>
<DialogTrigger asChild>
<Button className="w-fit text-white/80 self-center" variant="outline">
<Button className="w-fit text-white/80 self-center whitespace-nowrap" variant="outline">
{label}
</Button>
</DialogTrigger>

View File

@ -33,14 +33,11 @@ const Endless: React.FC<EndlessProps> = (props) => {
return game ? (
<>
<div className="w-full flex text-white/90 gap-4">
<Button
onClick={async () => {
const gameId = await startGame.mutateAsync(null);
setGameId(gameId.uuid);
}}
>
Restart
</Button>
<div className="w-full h-full text-white/70 font-mono text-lg flex items-center">
{game.minesCount - game.isFlagged.flat().filter((f) => f).length}
{" | "}
Stage {game.stage}
</div>
<div className="grow" />
<LeaderboardButton label="View Leaderboard" />
</div>