Skip to content

A self-hosted media server and file management system

fix: transcript sidebar has no close button

aminnausin04808ed2cfe9
diff --git a/resources/js/components/panels/TranscriptSidebar.vue b/resources/js/components/panels/TranscriptSidebar.vue
index 5c2e1616..52701b57 100644
--- a/resources/js/components/panels/TranscriptSidebar.vue
+++ b/resources/js/components/panels/TranscriptSidebar.vue
@@ -7,9 +7,10 @@ import PlayerTranscript from '@/components/video/transcript/PlayerTranscript.vue
import SidebarHeader from '@/components/headers/SidebarHeader.vue';
import ProiconsPanelRight from '~icons/proicons/panel-right';
+import ProiconsCancel from '~icons/proicons/cancel';
const { cycleSideBar } = useAppStore();
-const { placement } = useTranscript();
+const { placement, isShowingTranscript } = useTranscript();
</script>
<template>
@@ -19,10 +20,19 @@ const { placement } = useTranscript();
title="Move to Player"
colour-classes="hover:bg-transparent"
text-classes="text-white/70 hover:text-white"
- position-classes="size-5"
+ position-classes="size-5 me-1.5"
>
<template #icon><ProiconsPanelRight class="scale-x-[-1]" /></template>
</ButtonCorner>
+ <ButtonCorner
+ @click="isShowingTranscript = false"
+ title="Close Transcript"
+ colour-classes="hover:bg-transparent"
+ text-classes="text-white/70 hover:text-white"
+ position-classes="size-5"
+ >
+ <template #icon><ProiconsCancel class="scale-x-[-1]" /></template>
+ </ButtonCorner>
</SidebarHeader>
<section id="list-content-transcript" class="full-height-sidebar flex flex-col flex-wrap gap-2">
diff --git a/resources/js/components/video/transcript/PlayerTranscript.vue b/resources/js/components/video/transcript/PlayerTranscript.vue
index 766ef7ab..475a507f 100644
--- a/resources/js/components/video/transcript/PlayerTranscript.vue
+++ b/resources/js/components/video/transcript/PlayerTranscript.vue
@@ -100,11 +100,9 @@ watch(activeIndex, async (index) => {
@wheel.passive="handleUserScroll"
@touchmove.passive="handleUserScroll"
>
- <div
- :class="cn('sticky top-0 z-10 flex items-center justify-between gap-2 rounded-lg bg-neutral-800 px-2 py-1.5 backdrop-blur-xs', { hidden: placement === 'sidebar' })"
- >
+ <div :class="cn('sticky top-0 z-10 flex items-center justify-between gap-2 rounded-lg bg-neutral-700/30 px-2 py-1.5', { hidden: placement === 'sidebar' })">
<p class="text-xs font-medium text-white/90 sm:text-sm">Transcript</p>
- <div class="flex items-center gap-2">
+ <div class="flex items-center gap-1">
<ButtonCorner
v-if="isDesktop && isNormalView"
@click="