Skip to content

Commit b241cb6

Browse files
committed
game now renders at same size independent of screen size
1 parent 4c870a6 commit b241cb6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

client/src/components/ui/GameEmbed.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export function GameEmbed({
3636
alt="Game Cover"
3737
width={gameWidth}
3838
height={gameHeight}
39-
className="absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[calc(-50%-26px)] blur-sm"
40-
style={{ width: "auto", height: gameHeight - 26 }}
39+
className="absolute translate-x-[-50%] translate-y-[calc(-50%)] blur-sm"
40+
style={{ width: "auto", height: gameHeight - 52 }}
4141
/>
4242
<Button
4343
onClick={() => setIsPlaying(!isPlaying)}
4444
size={"lg"}
45-
className="absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[calc(-50%-52px)] text-3xl"
45+
className="absolute translate-x-[-50%] translate-y-[calc(-50%)] text-3xl"
4646
>
4747
Play
4848
</Button>

client/src/pages/games/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function IndividualGamePage() {
9090
<section className="w-full items-center justify-center bg-popover">
9191
<div className="mx-auto max-w-7xl p-0 sm:p-8">
9292
{gameEmbedID != "0" ? (
93-
<div className="flex justify-center">
93+
<div className="m-auto] flex overflow-auto">
9494
<GameEmbed
9595
embedID={gameEmbedID}
9696
gameWidth={gameWidth}

0 commit comments

Comments
 (0)