From 7e444922f2628fd07a8763c8d6b1233930bcb116 Mon Sep 17 00:00:00 2001 From: joylessorchid Date: Mon, 16 Mar 2026 07:06:59 +0300 Subject: [PATCH] fix: symmetric card footer padding, add enlightrussia.ru to Twitch parent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CourseCard: card body pb-0, footer py-3 — equal spacing above/below border - StreamEmbed: add enlightrussia.ru as explicit Twitch parent domain Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/CourseCard.vue | 4 ++-- frontend/src/components/StreamEmbed.vue | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue index 83a601f5..fb99f1d4 100644 --- a/frontend/src/components/CourseCard.vue +++ b/frontend/src/components/CourseCard.vue @@ -65,7 +65,7 @@ -
+
-
+
diff --git a/frontend/src/components/StreamEmbed.vue b/frontend/src/components/StreamEmbed.vue index fcae5fe5..125deefa 100644 --- a/frontend/src/components/StreamEmbed.vue +++ b/frontend/src/components/StreamEmbed.vue @@ -93,11 +93,11 @@ const embedUrl = computed(() => { if (props.platform === 'twitch') { // Twitch requires parent= for every domain the embed runs on. - // Collect unique hostnames: current + localhost fallback - const hosts = new Set() - hosts.add(window.location.hostname || 'localhost') - // Always include localhost so dev server works too - hosts.add('localhost') + const hosts = new Set([ + 'enlightrussia.ru', + 'localhost', + window.location.hostname, + ].filter(Boolean)) const parentParams = [...hosts].map(h => `parent=${h}`).join('&') return `https://player.twitch.tv/?channel=${props.channel}&${parentParams}&autoplay=false` }