MediaAttachmentGrid: fix placeholder aspect-ratio
This commit is contained in:
		
							parent
							
								
									0d9b370919
								
							
						
					
					
						commit
						fd47639bef
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -89,7 +89,7 @@ const MediaAttachmentGrid: Component<{
 | 
			
		|||
          const realHeight = height && height > maxHeight ? maxHeight : height;
 | 
			
		||||
          const realWidth =
 | 
			
		||||
            width && height && height > maxHeight
 | 
			
		||||
              ? maxHeight / (aspectRatio ?? 1)
 | 
			
		||||
              ? maxHeight * (aspectRatio ?? 1)
 | 
			
		||||
              : width;
 | 
			
		||||
          const style = () =>
 | 
			
		||||
            loaded()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue