Skip to content

Commit

Permalink
feat: fix mobile height issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSchlangen committed Aug 16, 2023
1 parent 19090af commit 15c62a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function BorderCountdownTimer({ game, children, gameRef }: { game
font-weight: 700;
position: relative;
vertical-align: middle;
height: 50vh;
height: 50%;
}
div.timer::before,
Expand Down
4 changes: 2 additions & 2 deletions app-dev/cloud-quiz/app/components/question-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function QuestionPanel({ game, gameRef, currentQuestion }: { game
{isShowingCorrectAnswers ? currentQuestion.explanation : (<>[Pick {totalCorrectAnswerOptions}]</>)}
</h2>
</BorderCountdownTimer>
<center className='hidden bg-gray-100 p-10 h-[50vh] lg:block'>
<center className='hidden bg-gray-100 p-10 h-1/2 lg:block'>
{isPresenter ? (<>
<div>
Just getting here?
Expand All @@ -104,7 +104,7 @@ export default function QuestionPanel({ game, gameRef, currentQuestion }: { game
</>)}
</center>
</div>
<div className="grid grid-rows-4 h-[50vh] lg:h-full">
<div className="grid grid-rows-4 h-1/2 lg:h-full">
{currentQuestion.answers.map((answer, index) => {
const guessesForThisAnswer = Object.values(currentQuestion.playerGuesses || []).reduce((playerGuesses, guess) => {
return playerGuesses + (guess[index] ? 1 : 0);
Expand Down

0 comments on commit 15c62a0

Please sign in to comment.