making pt-videos fit video aspect ratio
This commit is contained in:
		
							parent
							
								
									be049e4536
								
							
						
					
					
						commit
						d3c7dc699b
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -4,5 +4,5 @@
 | 
			
		|||
{{- $height := .Get "height" | default "315" -}}
 | 
			
		||||
 | 
			
		||||
<div style="display: flex;">
 | 
			
		||||
  <iframe class="pt-vid" style="flex: auto;" width="{{ $width }}" height="{{ $height }}" sandbox="allow-same-origin allow-scripts allow-popups" src="{{ $vid }}?warningTitle=0" frameborder="0" allowfullscreen></iframe>
 | 
			
		||||
  <iframe class="pt-vid flex-auto aspect-video w-full" sandbox="allow-same-origin allow-scripts allow-popups" src="{{ $vid }}?warningTitle=0" frameborder="0" allowfullscreen></iframe>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue