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 ( return (
<Dialog> <Dialog>
<DialogTrigger asChild> <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} {label}
</Button> </Button>
</DialogTrigger> </DialogTrigger>

View File

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