fix: alignment of information on batch details

This commit is contained in:
Jannat Patel
2025-05-06 10:17:07 +05:30
parent fc03ecd1b3
commit 3a10d4bdc0
3 changed files with 5 additions and 9 deletions

View File

@@ -14,13 +14,13 @@
{{ batch.data.description }} {{ batch.data.description }}
</div> </div>
<div <div
class="flex flex-col gap-2 lg:gap-0 lg:flex-row lg:items-center space-x-5 lg:w-1/2" class="flex flex-col gap-2 lg:gap-0 lg:flex-row lg:items-center space-x-0 md:space-x-5 lg:w-1/2"
> >
<div <div
v-if="batch.data?.courses?.length" v-if="batch.data?.courses?.length"
class="flex items-center text-ink-gray-7" class="flex items-center text-ink-gray-7"
> >
<BookOpen class="h-4 w-4 mr-2" /> <BookOpen class="h-4 w-4 mr-2 stroke-1.5" />
<span> {{ batch.data?.courses?.length }} {{ __('Courses') }} </span> <span> {{ batch.data?.courses?.length }} {{ __('Courses') }} </span>
</div> </div>
<span v-if="batch.data?.courses?.length" class="hidden lg:block" <span v-if="batch.data?.courses?.length" class="hidden lg:block"
@@ -34,7 +34,7 @@
>&middot;</span >&middot;</span
> >
<div class="flex items-center text-ink-gray-7"> <div class="flex items-center text-ink-gray-7">
<Clock class="h-4 w-4 mr-2" /> <Clock class="h-4 w-4 mr-2 stroke-1.5" />
<span> <span>
{{ formatTime(batch.data.start_time) }} - {{ formatTime(batch.data.start_time) }} -
{{ formatTime(batch.data.end_time) }} {{ formatTime(batch.data.end_time) }}

View File

@@ -361,9 +361,7 @@ const enablePlyr = () => {
const videoElement = document.getElementsByClassName('video-player') const videoElement = document.getElementsByClassName('video-player')
if (videoElement.length === 0) return if (videoElement.length === 0) return
const src = document const src = videoElement[0].getAttribute('src')
.getElementsByClassName('video-player')[0]
.getAttribute('src')
if (src) { if (src) {
let videoID = src.split('/').pop() let videoID = src.split('/').pop()
document document

View File

@@ -475,9 +475,7 @@ const enablePlyr = () => {
const videoElement = document.getElementsByClassName('video-player') const videoElement = document.getElementsByClassName('video-player')
if (videoElement.length === 0) return if (videoElement.length === 0) return
const src = document const src = videoElement[0].getAttribute('src')
.getElementsByClassName('video-player')[0]
.getAttribute('src')
if (src) { if (src) {
let videoID = src.split('/').pop() let videoID = src.split('/').pop()
document document