Skip to content

Commit

Permalink
fix: adjust exam view questions toolbar size
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Dec 28, 2024
1 parent 052f706 commit a315fdc
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions app/components/qualifications/exam/ExamViewQuestions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,34 +210,41 @@ const onSubmitThrottle = useThrottleFn(async (event: FormSubmitEvent<Schema>) =>
<template>
<UDashboardToolbar v-if="!responses">
<template v-if="qualification" #default>
<div class="mb-2 flex flex-1 flex-row justify-between gap-2">
<div>
<h1 class="break-words px-0.5 py-1 text-4xl font-bold sm:pl-1">
{{ qualification.abbreviation }}: {{ qualification.title }}
</h1>

<p v-if="qualification.description" class="break-words px-0.5 py-1 text-base font-bold sm:pl-1">
{{ qualification.description }}
</p>
<div class="mb-2 flex flex-1 flex-col justify-between gap-1">
<div class="flex flex-1 flex-row justify-between gap-2">
<div>
<h1 class="break-words px-0.5 py-1 text-4xl font-bold sm:pl-1">
{{ qualification.abbreviation }}: {{ qualification.title }}
</h1>

<p v-if="qualification.description" class="break-words px-0.5 py-1 text-base font-bold sm:pl-1">
{{ qualification.description }}
</p>
</div>

<div class="inline-flex flex-col items-end gap-2">
<UIcon name="i-mdi-clock" class="size-8" />

<span class="font-semibold">
{{
useLocaleTimeAgo(toDate(props.examUser.endsAt), {
showSecond: true,
updateInterval: 1_000,
}).value
}}
</span>
</div>
</div>

<div class="inline-flex flex-col items-end gap-2">
<UIcon name="i-mdi-clock" class="size-10" />
<span class="font-semibold">
{{
useLocaleTimeAgo(toDate(props.examUser.endsAt), {
showSecond: true,
updateInterval: 1_000,
}).value
}}
</span>
<UBadge v-if="props.examUser.startedAt">
{{ $t('common.begins_at') }}
{{ $d(toDate(props.examUser.startedAt), 'long') }}
<div class="flex gap-1">
<UBadge v-if="props.examUser.startedAt" class="inline-flex gap-1">
<span class="font-semibold">{{ $t('common.begins_at') }}:</span>
<span>{{ $d(toDate(props.examUser.startedAt), 'long') }}</span>
</UBadge>
<UBadge v-if="props.examUser.endsAt">
{{ $t('common.ends_at') }}
{{ $d(toDate(props.examUser.endsAt), 'long') }}

<UBadge v-if="props.examUser.endsAt" class="inline-flex gap-1">
<span class="font-semibold">{{ $t('common.ends_at') }}:</span>
<span>{{ $d(toDate(props.examUser.endsAt), 'long') }}</span>
</UBadge>
</div>
</div>
Expand Down

0 comments on commit a315fdc

Please sign in to comment.