fix(dashboard): product table colum widths (#9329)
**What** - set product title and sales channels column widths to a reasonable value so the scroll is visible on mobile resolutions only --- FIXES CC-527
This commit is contained in:
+4
-2
@@ -9,11 +9,13 @@ type ProductCellProps = {
|
|||||||
|
|
||||||
export const ProductCell = ({ product }: ProductCellProps) => {
|
export const ProductCell = ({ product }: ProductCellProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full w-full items-center gap-x-3 overflow-hidden">
|
<div className="flex h-full w-full items-center gap-x-3 overflow-hidden max-w-[250px]">
|
||||||
<div className="w-fit flex-shrink-0">
|
<div className="w-fit flex-shrink-0">
|
||||||
<Thumbnail src={product.thumbnail} />
|
<Thumbnail src={product.thumbnail} />
|
||||||
</div>
|
</div>
|
||||||
<span className="truncate">{product.title}</span>
|
<span title={product.title} className="truncate">
|
||||||
|
{product.title}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -45,10 +45,12 @@ export const SalesChannelsCell = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const channels = salesChannels.map((sc) => sc.name).join(", ")
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full w-full items-center overflow-hidden">
|
<div className="flex h-full w-full items-center overflow-hidden max-w-[250px]">
|
||||||
<span className="truncate">
|
<span title={channels} className="truncate">
|
||||||
{salesChannels.map((sc) => sc.name).join(", ")}
|
{channels}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user