diff options
Diffstat (limited to 'lib/rfq-last')
| -rw-r--r-- | lib/rfq-last/shared/rfq-items-dialog.tsx | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/lib/rfq-last/shared/rfq-items-dialog.tsx b/lib/rfq-last/shared/rfq-items-dialog.tsx index e4f71e79..eed3d154 100644 --- a/lib/rfq-last/shared/rfq-items-dialog.tsx +++ b/lib/rfq-last/shared/rfq-items-dialog.tsx @@ -18,10 +18,15 @@ import { TableHeader, TableRow, } from "@/components/ui/table" -import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Skeleton } from "@/components/ui/skeleton" import { Separator } from "@/components/ui/separator" +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip" import { toast } from "sonner" import { RfqsLastView, VendorQuotationView } from "@/db/schema" import { getRfqItemsAction } from "../service" @@ -267,7 +272,7 @@ export function RfqItemsDialog({ <TableHead className="w-[60px]">아이템</TableHead> <TableHead className="w-[120px]">자재코드</TableHead> <TableHead>자재명</TableHead> - <TableHead className="w-[140px]">사양</TableHead> + <TableHead className="w-[200px]">Specification</TableHead> <TableHead className="w-[80px]">수량</TableHead> <TableHead className="w-[60px]">수량단위</TableHead> <TableHead className="w-[80px]">중량</TableHead> @@ -309,7 +314,7 @@ export function RfqItemsDialog({ <TableHead className="w-[60px]">아이템</TableHead> <TableHead className="w-[120px]">자재코드</TableHead> <TableHead>자재명</TableHead> - <TableHead className="w-[140px]">사양</TableHead> + <TableHead className="w-[200px]">Specification</TableHead> <TableHead className="w-[80px]">수량</TableHead> <TableHead className="w-[60px]">수량단위</TableHead> <TableHead className="w-[80px]">중량</TableHead> @@ -363,9 +368,24 @@ export function RfqItemsDialog({ </div> </TableCell> <TableCell> - <span className="text-sm font-medium"> - {item.specification?.trim() ? item.specification : "-"} - </span> + {item.specification?.trim() ? ( + <TooltipProvider> + <Tooltip> + <TooltipTrigger asChild> + <div className="text-sm font-medium cursor-help line-clamp-2 text-blue-600"> + {item.specification} + </div> + </TooltipTrigger> + <TooltipContent className="max-w-md p-3"> + <p className="text-sm whitespace-pre-wrap break-words"> + {item.specification} + </p> + </TooltipContent> + </Tooltip> + </TooltipProvider> + ) : ( + <span className="text-sm text-muted-foreground">-</span> + )} </TableCell> <TableCell> <span className="text-sm font-medium"> |
