fix: card spacing between desc and stats, youtube embed origin param
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div
|
||||
v-if="course.title"
|
||||
class="flex flex-col h-full rounded-xl overflow-hidden border border-outline-gray-2 bg-surface-white transition-all duration-200 hover:shadow-md hover:-translate-y-0.5 group"
|
||||
style="min-height: 320px"
|
||||
style="min-height: 340px"
|
||||
>
|
||||
<!-- Cover image / gradient -->
|
||||
<div
|
||||
@@ -84,7 +84,7 @@
|
||||
<div class="flex-1" />
|
||||
|
||||
<!-- Stats row -->
|
||||
<div class="flex items-center gap-3 text-xs text-ink-gray-5 mb-3 flex-wrap">
|
||||
<div class="flex items-center gap-3 text-xs text-ink-gray-5 mb-3 mt-3 flex-wrap">
|
||||
<span v-if="course.lessons" class="flex items-center gap-1">
|
||||
<BookOpen class="h-3.5 w-3.5" />
|
||||
{{ course.lessons }} {{ __('lessons') }}
|
||||
|
||||
@@ -104,7 +104,8 @@ const embedUrl = computed(() => {
|
||||
|
||||
if (props.platform === 'youtube') {
|
||||
// Supports both video ID and live stream
|
||||
return `https://www.youtube.com/embed/${props.channel}?autoplay=0&rel=0`
|
||||
const origin = encodeURIComponent(window.location.origin)
|
||||
return `https://www.youtube.com/embed/${props.channel}?autoplay=0&rel=0&origin=${origin}`
|
||||
}
|
||||
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user