File tree Expand file tree Collapse file tree
packages/admin/dashboard/src/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @medusajs/dashboard " : patch
3+ ---
4+
5+ fix(dashboard): show full product/variant name via tooltip in the price list and variant pricing grids
Original file line number Diff line number Diff line change 11import { HttpTypes } from "@medusajs/types"
2+ import { Tooltip } from "@medusajs/ui"
23import { ColumnDef } from "@tanstack/react-table"
34import { useMemo } from "react"
45import { useTranslation } from "react-i18next"
@@ -43,7 +44,9 @@ export const usePriceListGridColumns = ({
4344 < DataGrid . ReadonlyCell context = { context } >
4445 < div className = "flex h-full w-full items-center gap-x-2 overflow-hidden" >
4546 < Thumbnail src = { entity . thumbnail } size = "small" />
46- < span className = "truncate" > { entity . title } </ span >
47+ < Tooltip content = { entity . title } >
48+ < span className = "truncate" > { entity . title } </ span >
49+ </ Tooltip >
4750 </ div >
4851 </ DataGrid . ReadonlyCell >
4952 )
@@ -52,7 +55,9 @@ export const usePriceListGridColumns = ({
5255 return (
5356 < DataGrid . ReadonlyCell context = { context } color = "normal" >
5457 < div className = "flex h-full w-full items-center gap-x-2 overflow-hidden" >
55- < span className = "truncate" > { entity . title } </ span >
58+ < Tooltip content = { entity . title } >
59+ < span className = "truncate" > { entity . title } </ span >
60+ </ Tooltip >
5661 </ div >
5762 </ DataGrid . ReadonlyCell >
5863 )
Original file line number Diff line number Diff line change 11import { HttpTypes } from "@medusajs/types"
2+ import { Tooltip } from "@medusajs/ui"
23import { useMemo } from "react"
34import { UseFormReturn , useWatch } from "react-hook-form"
45import { useTranslation } from "react-i18next"
@@ -72,7 +73,9 @@ const useVariantPriceGridColumns = ({
7273 return (
7374 < DataGrid . ReadonlyCell context = { context } >
7475 < div className = "flex h-full w-full items-center gap-x-2 overflow-hidden" >
75- < span className = "truncate" > { entity . title } </ span >
76+ < Tooltip content = { entity . title } >
77+ < span className = "truncate" > { entity . title } </ span >
78+ </ Tooltip >
7679 </ div >
7780 </ DataGrid . ReadonlyCell >
7881 )
You can’t perform that action at this time.
0 commit comments