CLASSROOMIO-T-225: Aligned question number and title

CLASSROOMIO-T-225:Removed console log

CLASSROOMIO-T-225:Aligned question number and title


Co-authored-by: Ifeanyi Nwosu <ifeanyi@digdippa.com>


Merge-request: CLASSROOMIO-MR-113
Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
emmanuel
2023-10-24 04:26:26 +00:00
committed by Space Cloud
parent 1acbae281a
commit fdfbdea68e
4 changed files with 26 additions and 13 deletions
@@ -7,6 +7,7 @@
import Grade from '$lib/components/Question/Grade.svelte';
export let title = '';
export let index = 1;
export let code = '';
export let name = '';
export let onSubmit = () => {};
@@ -37,7 +38,10 @@
<div class="flex items-center justify-between mb-2">
<HtmlRender className="mt-4">
<svelte:fragment slot="content">
<h3 class={typeof grade === 'number' ? 'w-3/4' : ''}>{title}</h3>
<span class={`${typeof grade === 'number' ? 'w-3/4' : ''} flex gap-1`}>
<h3>{index}</h3>
<h3>{title}</h3>
</span>
</svelte:fragment>
</HtmlRender>
<Grade {gradeMax} {grade} {disableGrading} />