From 60382940bac4ac8309be64be16f4774b6820df22 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 19 Nov 2025 17:44:48 +0900
Subject: (김준회) PR 데이터 수신시 Spec 정보도 넣어주도록 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/rfq-last/shared/rfq-items-dialog.tsx | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

(limited to 'lib/rfq-last/shared/rfq-items-dialog.tsx')

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">
-- 
cgit v1.2.3

