Fix thumbnail not filling entire space sometimes (#6709)
This commit is contained in:
		
							parent
							
								
									8b18784116
								
							
						
					
					
						commit
						15ec9431be
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		|  | @ -170,9 +170,11 @@ class Item extends React.PureComponent { | ||||||
|         if (originalWidth > originalHeight) { |         if (originalWidth > originalHeight) { | ||||||
|           imageStyle.height   = '100%'; |           imageStyle.height   = '100%'; | ||||||
|           imageStyle.width    = 'auto'; |           imageStyle.width    = 'auto'; | ||||||
|  |           imageStyle.minWidth = '100%'; | ||||||
|         } else { |         } else { | ||||||
|           imageStyle.height    = 'auto'; |           imageStyle.height    = 'auto'; | ||||||
|           imageStyle.width     = '100%'; |           imageStyle.width     = '100%'; | ||||||
|  |           imageStyle.minHeight = '100%'; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         imageStyle.top  = vShift; |         imageStyle.top  = vShift; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue