diff --git a/apps/web/src/pages/RoomPage.tsx b/apps/web/src/pages/RoomPage.tsx index 06bc530..a8ee36a 100644 --- a/apps/web/src/pages/RoomPage.tsx +++ b/apps/web/src/pages/RoomPage.tsx @@ -95,6 +95,8 @@ function Room({ code, me }: { code: string; me: PublicUser }) { const [ui, setUi] = useState(null); const [leaveAsk, setLeaveAsk] = useState(false); const [chatOpen, setChatOpen] = useState(false); + // Under 1100px there is no chat column (Lobby/GameView), so the bar carries a 💬 button — phones and narrowed PC windows alike. + const wide = useWide(); // 설정 opens as a popup over the room: going to /me would unmount the room and detach from it. const [settingsOpen, setSettingsOpen] = useState(false); const closeSettings = useCallback(() => setSettingsOpen(false), []); @@ -213,11 +215,7 @@ function Room({ code, me }: { code: string; me: PublicUser }) { className="btn btn-ghost btn-sm rb-btn" /> - {!roomChatClosed && ( - - setChatOpen(true)} /> - - )} + {!roomChatClosed && !wide && setChatOpen(true)} />}