diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index b389901..492ab5e 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -122,6 +122,7 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, }; const handleResizeStart = (e: React.MouseEvent, colKey: string, currentWidth: number) => { + console.log('Resize started for:', colKey, 'at x:', e.clientX); e.preventDefault(); e.stopPropagation(); setResizingColumn(colKey); @@ -661,9 +662,16 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, -
- Art. No. -
handleResizeStart(e, 'articleNo', columnWidths.articleNo || 100)} className="absolute right-0 top-0 bottom-0 w-2 cursor-col-resize hover:bg-blue-500/30" /> +
+
+ Art. No. +
handleResizeStart(e, 'articleNo', columnWidths.articleNo || 100)} + onClick={(e) => e.stopPropagation()} + className="w-1.5 h-4 bg-slate-600 hover:bg-blue-500 cursor-col-resize rounded-sm ml-1 shrink-0 pointer-events-auto" + title="Drag to resize" + /> +
Article Name