File tree Expand file tree Collapse file tree
resources/js/components/video/subtitles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ defineExpose({
116116 ref="subtitles-popover"
117117 :margin =" 80 "
118118 :player =" player "
119- :popoverClass =" cn (' max-w-40! rounded-lg h-18 md:h-fit' , { ' right-0!' : usingPlayerModernUI })"
119+ :popoverClass =" cn (' max-w-40! rounded-lg md:h-fit' , { ' h-18 ' : playerSubtitleItems . length > 1 } , { ' right-0!' : usingPlayerModernUI })"
120120 :button-attributes =" {
121121 ' target-element' : player ,
122122 ' use-tooltip' : true ,
@@ -129,7 +129,7 @@ defineExpose({
129129 <LucideCaptionsOff v-else class="size-4" />
130130 </template >
131131 <template #content >
132- <section class =" scrollbar-minimal flex h-14 max-h-28 flex-col overflow-y-auto transition-transform md:h-fit" >
132+ <section : class =" [' scrollbar-minimal flex max-h-28 flex-col overflow-y-auto transition-transform md:h-fit', { 'h-14': playerSubtitleItems.length > 1 }] " >
133133 <VideoPopoverItem v-for =" (item , index ) in playerSubtitleItems " :key =" index " v-bind =" item " class="capitalize" />
134134 </section >
135135 </template >
You can’t perform that action at this time.
0 commit comments