fix: multiline tags

This commit is contained in:
Jannat Patel
2024-07-17 11:29:14 +05:30
parent 25a2d82e82
commit 493bab8163

View File

@@ -2,28 +2,23 @@
<div <div
v-if="course.title" v-if="course.title"
class="flex flex-col h-full rounded-md shadow-md text-base overflow-auto" class="flex flex-col h-full rounded-md shadow-md text-base overflow-auto"
style="min-height: 320px" style="min-height: 350px"
> >
<div <div
class="course-image" class="course-image"
:class="{ 'default-image': !course.image }" :class="{ 'default-image': !course.image }"
:style="{ backgroundImage: 'url(\'' + encodeURI(course.image) + '\')' }" :style="{ backgroundImage: 'url(\'' + encodeURI(course.image) + '\')' }"
> >
<div class="flex relative top-4 left-4 w-fit flex-wrap"> <div
<Badge class="flex items-center flex-wrap space-y-1 space-x-1 relative top-4 px-2 w-fit"
v-if="course.featured" >
variant="subtle" <Badge v-if="course.featured" variant="subtle" theme="green" size="md">
theme="green"
size="md"
class="mr-2"
>
{{ __('Featured') }} {{ __('Featured') }}
</Badge> </Badge>
<Badge <Badge
variant="outline" variant="outline"
theme="gray" theme="gray"
size="md" size="md"
class="mr-2"
v-for="tag in course.tags" v-for="tag in course.tags"
> >
{{ tag }} {{ tag }}