diff --git a/src/routes/GamePage.tsx b/src/routes/GamePage.tsx index 6ec6e64..45dd7c5 100644 --- a/src/routes/GamePage.tsx +++ b/src/routes/GamePage.tsx @@ -263,7 +263,7 @@ const GamePage: FunctionComponent<{ function renderMobileBoardToolbar() { return - {buildInfoPanel()} + {buildInfoPanel({ visible: isMobile })} ; } @@ -273,7 +273,7 @@ const GamePage: FunctionComponent<{ marginBottom: "0.5rem", marginLeft: "6%", maxWidth: isMobile ? "40vw" : "30vw", width: isMobile ? "40vw" : "30vw" }} context={context} layoutMode="left" user={topLocatedUser} visible={showBoardView || false} /> - {buildInfoPanel()} + {buildInfoPanel({ visible: !isMobile })} ; } - function buildInfoPanel() { + function buildInfoPanel(params: { visible: boolean }) { return ( ); }