Skip to content

Commit 810c1aa

Browse files
committed
chore: comments and small tweaks
1 parent 227caa1 commit 810c1aa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

electron/renderer/pages/game.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ const GamePage: React.FC = (): ReactNode => {
4040
return new rxjs.Subject<GameLogLine>();
4141
});
4242

43-
// TODO load the grid config items
44-
// TODO load the grid layout items
45-
4643
const { colorMode } = useTheme();
4744

4845
const mainStreamId = getGameItemInfo(GameItemId.MAIN).streamId;
@@ -220,6 +217,7 @@ const GamePage: React.FC = (): ReactNode => {
220217
});
221218
});
222219

220+
// One of the ways to let user know the game has disconnected.
223221
useSubscribe(['game:disconnect'], () => {
224222
gameLogLineSubject$.next({
225223
eventId: uuid(),
@@ -323,7 +321,7 @@ const GamePage: React.FC = (): ReactNode => {
323321
isFocused: false,
324322
layout: {
325323
x: 828,
326-
y: 390,
324+
y: 190,
327325
width: 306,
328326
height: 355,
329327
},
@@ -337,7 +335,7 @@ const GamePage: React.FC = (): ReactNode => {
337335
x: 0,
338336
y: 200,
339337
width: 828,
340-
height: 545,
338+
height: 420,
341339
},
342340
});
343341

0 commit comments

Comments
 (0)