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:
Frane Polić
2024-09-30 07:57:24 +00:00
committed by GitHub
parent 6fbfbfab19
commit 046e6e5533
2 changed files with 9 additions and 5 deletions
@@ -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>
) )
} }
@@ -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>
) )