Fix empty screen before first question is shown
This commit is contained in:
@@ -164,7 +164,7 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<br />
|
<br />
|
||||||
{#if get_question_title(selected_question + 1, quiz_data) === '' && selected_question + 1 === 0}
|
{#if selected_question === -1}
|
||||||
<div class="flex flex-col justify-center w-screen h-full">
|
<div class="flex flex-col justify-center w-screen h-full">
|
||||||
<h1 class="text-7xl text-center">{@html quiz_data.title}</h1>
|
<h1 class="text-7xl text-center">{@html quiz_data.title}</h1>
|
||||||
<p class="text-3xl pt-8 text-center">{@html quiz_data.description}</p>
|
<p class="text-3xl pt-8 text-center">{@html quiz_data.description}</p>
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
import type { Socket } from 'socket.io-client';
|
import type { Socket } from 'socket.io-client';
|
||||||
import { getLocalization } from '$lib/i18n';
|
import { getLocalization } from '$lib/i18n';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
bg_color: string;
|
bg_color: string;
|
||||||
selected_question: number;
|
selected_question: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user