From 05f9f0ef107027f17647347f69d9de25d0c7837b Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Fri, 24 Apr 2026 13:31:36 +0200 Subject: [PATCH] fix: improve column pinning with proper z-index stacking - Add getStickyRank() function for layered z-index on pinned columns - Higher z-index for rightmost pinned columns so they stack correctly - Apply z-index dynamically based on column order in pinned list - All pinned columns now stay visible while scrolling --- src/components/PricingView.tsx | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index 140057c..06e942a 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -1330,7 +1330,7 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, ); })} - handleSort('unitsOuter')}> @@ -1361,9 +1361,9 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, { e.stopPropagation(); handleResizeStart(e, 'unitsOuter', columnWidths.unitsOuter); }} /> - handleSort('outerW')}>
@@ -1392,9 +1392,9 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, { e.stopPropagation(); handleResizeStart(e, 'outerW', columnWidths.outerW); }} /> - handleSort('outerL')}>
@@ -1423,9 +1423,9 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, { e.stopPropagation(); handleResizeStart(e, 'outerL', columnWidths.outerL); }} /> - handleSort('outerH')}>
@@ -1581,24 +1581,24 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, )} > {/* Art. No. */} - + {row[COLUMNS.ARTICLE_NO]} {/* Article Name */} - + {row[COLUMNS.ARTICLE_NAME] || '—'} {/* Line */} - + {row[COLUMNS.LINE] || '—'} {/* Classification */} - + {/* TYPE cell */} - + {editingType?.rowIndex === dataIndex ? (
{/* ITEM TO LOGISTIC cell */} - + {editingLogistic?.rowIndex === dataIndex ? ( + {isEditing ? (
+ {unitOuterBadge(row[unitsOuterIdx])} - + {row[COLUMNS.OUTER_W] ?? '-'} - + {row[COLUMNS.OUTER_L] ?? '-'} - + {row[COLUMNS.OUTER_H] ?? '-'} @@ -1755,7 +1755,7 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, {containerCols.map(col => { const colKey = `con_${col.index}`; return ( - + {unitBadge(row[col.index], col.name)} );