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}
|
||||
<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">
|
||||
<h1 class="text-7xl text-center">{@html quiz_data.title}</h1>
|
||||
<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 { getLocalization } from '$lib/i18n';
|
||||
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
bg_color: string;
|
||||
selected_question: number;
|
||||
|
||||
Reference in New Issue
Block a user