Skip to content

Commit

Permalink
Fix Unrecognized Files Utility Row Background. (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis authored Nov 20, 2023
1 parent 245e2f9 commit c0f1f30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Utilities/UtilitiesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,10 @@ function UtilitiesTable(props: Props) {
{virtualRows.map((virtualRow) => {
const row = rows[virtualRow.index] as Row<FileType | SeriesType>;
return (
// Cannot use even: or odd: for background as it doesn't work properly with virtualizer
<tr
key={row.id}
className={cx(
parseInt(row.id, 10) % 2 === 0 ? 'bg-panel-background' : 'bg-panel-background-alt',
virtualRow.index % 2 === 0 ? 'bg-panel-background' : 'bg-panel-background-alt',
'cursor-pointer',
)}
onClick={e => handleRowSelect(e, row)}
Expand Down

0 comments on commit c0f1f30

Please sign in to comment.