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');
|
||||
}
|
||||
// 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));
|
||||
return rowHeight;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue