Skip to content

Commit 466dc6f

Browse files
committed
fix(VVideo): hide overlays for background variant
1 parent 46cf40b commit 466dc6f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/vuetify/src/labs/VVideo/VVideo.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,18 +466,20 @@ export const VVideo = genericComponent<VVideoSlots>()({
466466
...roundedContainerClasses.value,
467467
]}
468468
>
469-
{ overlayPlayIcon }
469+
{ props.variant === 'player' && overlayPlayIcon }
470470
</div>
471471
</VImg>
472472
</VOverlay>
473-
<VOverlay
474-
key="loading-overlay"
475-
modelValue={ state.value === 'loading' || waiting.value }
476-
opacity=".1"
477-
{ ...overlayProps }
478-
>
479-
{ loadingIndicator }
480-
</VOverlay>
473+
{ props.variant === 'player' && (
474+
<VOverlay
475+
key="loading-overlay"
476+
modelValue={ state.value === 'loading' || waiting.value }
477+
opacity=".1"
478+
{ ...overlayProps }
479+
>
480+
{ loadingIndicator }
481+
</VOverlay>
482+
)}
481483
</div>
482484
<MaybeTransition key="actions" transition={ props.controlsTransition }>
483485
{ showControls && (

0 commit comments

Comments
 (0)