HTML Tree: adjust row padding per OS
This commit is contained in:
		
					parent
					
						
							
								e8ad2fab95
							
						
					
				
			
			
				commit
				
					
						76276a39ce
					
				
			
		
					 1 changed files with 11 additions and 1 deletions
				
			
		|  | @ -1238,7 +1238,17 @@ class VirtualizedTable extends React.Component { | ||||||
| 			rowHeight *= Zotero.Prefs.get('fontSize'); | 			rowHeight *= Zotero.Prefs.get('fontSize'); | ||||||
| 		} | 		} | ||||||
| 		// padding | 		// padding | ||||||
| 		rowHeight *= 1.4; | 		// This is weird, but Firefox trees always had different amount of padding on | ||||||
|  | 		// different OSes | ||||||
|  | 		if (Zotero.isMac) { | ||||||
|  | 			rowHeight *= 1.4; | ||||||
|  | 		} | ||||||
|  | 		else if (Zotero.isWindows) { | ||||||
|  | 			rowHeight *= 1.2; | ||||||
|  | 		} | ||||||
|  | 		else { | ||||||
|  | 			rowHeight *= 1.1; | ||||||
|  | 		} | ||||||
| 		rowHeight = Math.round(Math.max(MINIMUM_ROW_HEIGHT, rowHeight)); | 		rowHeight = Math.round(Math.max(MINIMUM_ROW_HEIGHT, rowHeight)); | ||||||
| 		return rowHeight; | 		return rowHeight; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adomas Venčkauskas
				Adomas Venčkauskas