diff --git a/client/src/components/DrawingGame.scss b/client/src/components/DrawingGame.scss index 1aedfac..4b53933 100644 --- a/client/src/components/DrawingGame.scss +++ b/client/src/components/DrawingGame.scss @@ -142,4 +142,25 @@ .draw-players { columns: 2; } + + // Na úzkém displeji (telefon na výšku) jde chat pod plátno, jinak by se plátno smrsklo na proužek + @media (max-width: 767.98px) { + .draw-topbar { + flex-wrap: wrap; + gap: 4px 16px; + } + + .draw-layout { + flex-direction: column; + } + + .draw-side { + flex: 0 0 auto; + } + + .draw-chat { + min-height: 120px; + max-height: 200px; + } + } } diff --git a/client/src/components/DrawingGame.tsx b/client/src/components/DrawingGame.tsx index 11a2f76..4703fc2 100644 --- a/client/src/components/DrawingGame.tsx +++ b/client/src/components/DrawingGame.tsx @@ -414,7 +414,7 @@ export default function DrawingGame() { {icon} Kreslení běží — zpět do hry )} - setOpen(false)} size="xl" className="drawing-game-modal"> + setOpen(false)} size="xl" fullscreen="sm-down" className="drawing-game-modal">

{icon} Kreslení

diff --git a/client/src/components/Header.tsx b/client/src/components/Header.tsx index cc983c2..2fb76ce 100644 --- a/client/src/components/Header.tsx +++ b/client/src/components/Header.tsx @@ -155,6 +155,8 @@ export default function Header({ choices, dayIndex }: Props) { return Luncher +