Skip to content

Commit 7f4d8f6

Browse files
committed
Minor: Format code
1 parent db8c2f7 commit 7f4d8f6

14 files changed

+283
-202
lines changed

assets/vue/components/course/AdminCourseCard.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
<template #header>
44
<div class="relative aspect-[16/9] w-full overflow-hidden bg-gray-100">
55
<img
6-
:src="imageUrl"
76
:alt="course.title || 'Course illustration'"
7+
:src="imageUrl"
88
class="absolute inset-0 h-full w-full object-cover"
99
loading="lazy"
1010
referrerpolicy="no-referrer"
1111
@error="onImgError"
1212
/>
1313
<button
14-
@click.stop="toggleFavorite"
1514
:aria-label="isFavorite ? t('Unmark favorite') : t('Mark favorite')"
1615
class="absolute top-2 right-2 grid place-content-center w-10 h-10 rounded-full bg-white/80 backdrop-blur text-yellow-400 hover:text-yellow-500 shadow"
16+
@click.stop="toggleFavorite"
1717
>
1818
<i :class="isFavorite ? 'pi pi-star-fill' : 'pi pi-star'" />
1919
</button>
@@ -22,7 +22,10 @@
2222

2323
<template #title>
2424
<div class="course-card__title flex items-start gap-2">
25-
<span class="font-semibold leading-snug line-clamp-2" :title="course.title">
25+
<span
26+
:title="course.title"
27+
class="font-semibold leading-snug line-clamp-2"
28+
>
2629
{{ course.title }}
2730
</span>
2831
</div>
@@ -108,4 +111,3 @@ watch(
108111
{ immediate: true },
109112
)
110113
</script>
111-

0 commit comments

Comments
 (0)