Skip to content

Commit 7b9b353

Browse files
committed
comment and add migration
1 parent 03b2c15 commit 7b9b353

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export default function IndividualGamePage() {
8989
<main>
9090
<section className="w-full items-center justify-center bg-popover">
9191
<div className="mx-auto flex max-w-7xl justify-center p-0 sm:p-8">
92+
{/* only render game embed if ID, width, and height are all provided (...and are non-zero). */}
9293
{gamePlayableID && gameWidth && gameHeight ? (
9394
<div className="m-auto flex overflow-auto">
9495
<GameEmbed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 5.1.15 on 2026-02-28 13:46
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('game_dev', '0027_remove_game_itchgameembedid_game_itchgameplayableid'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='game',
15+
name='itchGameHeight',
16+
field=models.PositiveBigIntegerField(blank=True, default=None, null=True),
17+
),
18+
migrations.AlterField(
19+
model_name='game',
20+
name='itchGameWidth',
21+
field=models.PositiveBigIntegerField(blank=True, default=None, null=True),
22+
),
23+
]

0 commit comments

Comments
 (0)