Skip to content

Commit

Permalink
Max height image
Browse files Browse the repository at this point in the history
  • Loading branch information
Titiftw committed Oct 11, 2024
1 parent 5c9f2e6 commit da83b9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/lib/play/question.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ SPDX-License-Identifier: MPL-2.0
width: 35%;
}
}
.question-image-wrapper {
max-height: 50% !important;
}
</style>

<div class="h-screen w-screen">
Expand All @@ -168,10 +171,10 @@ SPDX-License-Identifier: MPL-2.0
{@html question.question}
</h1>
{#if question.image !== null && game_mode !== 'kahoot'}
<div class="max-h-full">
<div class="max-h-full question-image-wrapper">
<MediaComponent
src={question.image}
css_classes="object-cover mx-auto mb-8 max-h-[50%]"
css_classes="object-cover mx-auto mb-8 max-h-[90%]"
/>
</div>
{/if}
Expand Down

0 comments on commit da83b9f

Please sign in to comment.