style: 優化規格 Tooltip 支援多行換行顯示
This commit is contained in:
@@ -142,7 +142,7 @@ export default function ProductTable({
|
|||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
{product.specification && (
|
{product.specification && (
|
||||||
<TooltipContent className="max-w-xs break-all">
|
<TooltipContent className="max-w-xs break-all">
|
||||||
<p>{product.specification}</p>
|
<p className="whitespace-pre-wrap">{product.specification}</p>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
)}
|
)}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user