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 09:57:24 +02:00
committed by GitHub
parent 6fbfbfab19
commit 046e6e5533
2 changed files with 9 additions and 5 deletions

View File

@@ -9,11 +9,13 @@ type ProductCellProps = {
export const ProductCell = ({ product }: ProductCellProps) => {
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">
<Thumbnail src={product.thumbnail} />
</div>
<span className="truncate">{product.title}</span>
<span title={product.title} className="truncate">
{product.title}
</span>
</div>
)
}

View File

@@ -45,10 +45,12 @@ export const SalesChannelsCell = ({
)
}
const channels = salesChannels.map((sc) => sc.name).join(", ")
return (
<div className="flex h-full w-full items-center overflow-hidden">
<span className="truncate">
{salesChannels.map((sc) => sc.name).join(", ")}
<div className="flex h-full w-full items-center overflow-hidden max-w-[250px]">
<span title={channels} className="truncate">
{channels}
</span>
</div>
)