mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Center videos, and limit video size in embeds. (#848)
This commit is contained in:
		
							parent
							
								
									dd80665ba5
								
							
						
					
					
						commit
						f93f52051c
					
				
					 2 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,11 @@
 | 
			
		|||
<template>
 | 
			
		||||
    <div ref="container" data-shaka-player-container :class="{ 'player-container': !isEmbed }">
 | 
			
		||||
        <video ref="videoEl" data-shaka-player class="w-full" :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" />
 | 
			
		||||
    <div
 | 
			
		||||
        ref="container"
 | 
			
		||||
        data-shaka-player-container
 | 
			
		||||
        class="w-full max-h-screen flex justify-center"
 | 
			
		||||
        :class="{ 'player-container': !isEmbed }"
 | 
			
		||||
    >
 | 
			
		||||
        <video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" />
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<template>
 | 
			
		||||
    <div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full z-50">
 | 
			
		||||
    <div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full bg-black z-50">
 | 
			
		||||
        <VideoPlayer
 | 
			
		||||
            ref="videoPlayer"
 | 
			
		||||
            :video="video"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue