From 03b98c9aed777d6d6f1b28dd7f812b8331159399 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Mon, 20 Apr 2026 20:35:46 +0200 Subject: [PATCH] Add tooltip preview on hover for notes in Pricing tab Show note content in popup when hovering over the notes icon --- src/components/PricingView.tsx | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index f1f6d01..6a7ca02 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -1,4 +1,4 @@ -import React, { useState, useMemo, useRef, useCallback } from 'react'; +import React, { useState, useMemo, useRef, useCallback, useEffect } from 'react'; import { ExcelRow, COLUMNS } from '../types'; import { AlertTriangle, @@ -925,18 +925,24 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, onChange={(e) => handleToggleCheck(dataIndex, e.target.checked)} className="w-4 h-4 rounded border-slate-600 bg-slate-900 text-blue-600 focus:ring-blue-500 focus:ring-offset-slate-800 cursor-pointer" /> - + {note && ( +
+ {note} +
)} - title={note || "Add note"} - > - - +