fix: card spacing between desc and stats, youtube embed origin param

This commit is contained in:
2026-03-16 07:32:37 +03:00
parent b95b1828dc
commit 80ef2023b2
2 changed files with 4 additions and 3 deletions

View File

@@ -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') }}

View File

@@ -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 ''