HTML tree: Add alternating rows to all trees except collections on macOS

This commit is contained in:
Dan Stillman 2021-08-25 01:55:28 -04:00
parent d0635e12cb
commit 92e6a536f1
3 changed files with 2 additions and 1 deletions

View file

@ -375,6 +375,7 @@ var CollectionTree = class CollectionTree extends LibraryTree {
renderItem: this.renderItem,
// Extra space on macOS (which gets reduced by 2, so this really means 20)
...(Zotero.isMac && { rowHeight: 22 }),
alternatingRowColors: null,
onSelectionChange: this._handleSelectionChange,
isSelectable: this.isSelectable,

View file

@ -331,6 +331,7 @@ class VirtualizedTable extends React.Component {
getColumnPrefs: () => ({}),
storeColumnPrefs: noop,
staticColumns: false,
alternatingRowColors: Zotero.isMac ? ['-moz-OddTreeRow', '-moz-EvenTreeRow'] : null,
// Render with display: none
hide: false,

View file

@ -1130,7 +1130,6 @@ var ItemTree = class ItemTree extends LibraryTree {
hide: showMessage,
key: "virtualized-table",
label: Zotero.getString('pane.items.title'),
alternatingRowColors: Zotero.isMac ? ['-moz-OddTreeRow', '-moz-EvenTreeRow'] : null,
showHeader: true,
columns: this._getColumns(),