fix: row-alt background now works on customers list too
This commit is contained in:
@@ -840,13 +840,14 @@ export default function CustomerList() {
|
||||
const gradient = rowGradient(c, direction);
|
||||
const rowBg = hoveredRow === c.id ? "var(--bg-card-hover)" : undefined;
|
||||
const zebraBase = index % 2 === 1 ? "var(--bg-row-alt)" : "transparent";
|
||||
const rowBackground = gradient
|
||||
? `${gradient}, ${zebraBase}`
|
||||
: zebraBase;
|
||||
const rowStyle = {
|
||||
borderBottom: (!isLast && !(notesMode === "expanded" && hasStatus))
|
||||
? "1px solid var(--border-secondary)"
|
||||
: "none",
|
||||
background: rowBg
|
||||
? rowBg
|
||||
: gradient || zebraBase,
|
||||
background: rowBg ? rowBg : rowBackground,
|
||||
};
|
||||
|
||||
const mainRow = (
|
||||
@@ -892,7 +893,7 @@ export default function CustomerList() {
|
||||
onClick={() => navigate(`/crm/customers/${c.id}`)}
|
||||
style={{
|
||||
borderBottom: "none",
|
||||
background: subRowBg || gradient || "transparent",
|
||||
background: subRowBg ? subRowBg : rowBackground,
|
||||
}}
|
||||
onMouseEnter={() => setHoveredRow(c.id)}
|
||||
onMouseLeave={() => setHoveredRow(null)}
|
||||
@@ -932,7 +933,7 @@ export default function CustomerList() {
|
||||
onClick={() => navigate(`/crm/customers/${c.id}`)}
|
||||
style={{
|
||||
borderBottom: "none",
|
||||
background: subRowBg || gradient || "transparent",
|
||||
background: subRowBg ? subRowBg : rowBackground,
|
||||
}}
|
||||
onMouseEnter={() => setHoveredRow(c.id)}
|
||||
onMouseLeave={() => setHoveredRow(null)}
|
||||
|
||||
Reference in New Issue
Block a user