From 431d7e1eaa0e52415d196cfa3004983f1ab1db21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 23 Apr 2021 12:03:03 +0300 Subject: [PATCH] Fix alternating-row colours switching upon child expand-collapse --- chrome/content/zotero/components/virtualized-table.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 43ccc3e1a2..dbc80df9d6 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -891,11 +891,11 @@ class VirtualizedTable extends React.Component { if (this.props.alternatingRowColors) { this._jsWindow.innerElem.style.background = ` repeating-linear-gradient( - 0deg, - ${this.props.alternatingRowColors[0]}, - ${this.props.alternatingRowColors[0]} ${this._rowHeight}px, + 180deg, + ${this.props.alternatingRowColors[1]}, ${this.props.alternatingRowColors[1]} ${this._rowHeight}px, - ${this.props.alternatingRowColors[1]} ${this._rowHeight * 2}px + ${this.props.alternatingRowColors[0]} ${this._rowHeight}px, + ${this.props.alternatingRowColors[0]} ${this._rowHeight * 2}px ) `; }