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:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user