Skip to content

Commit 2e00925

Browse files
committed
Design tweaks for truncated product names
1 parent 00a9e58 commit 2e00925

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/ProductCatalog.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,23 @@ const ProductCatalog = ({
101101
href={product.data.product.url}
102102
className="self-stretch p-3 border-gray-200 dark:border-gray-700 border-solid border rounded-md block !text-inherit no-underline hover:bg-gray-50 dark:hover:bg-black"
103103
>
104-
<div className="flex items-center">
104+
<div className="flex items-start">
105105
{product.icon && (
106-
<div className="rounded-full p-2 bg-orange-50 mr-2 text-orange-500 dark:bg-orange-950">
106+
<div className="rounded-full p-1 bg-orange-50 mr-2 text-orange-500 dark:bg-orange-950">
107107
<svg
108108
{...product.icon.attributes}
109-
width={28}
110-
height={28}
109+
width={24}
110+
height={24}
111111
dangerouslySetInnerHTML={{ __html: product.icon.body }}
112112
/>
113113
</div>
114114
)}
115115
{!product.icon && (
116-
<div className="flex items-center justify-center leading-none rounded-full p-2 bg-orange-50 dark:bg-orange-950 mr-2 text-[color:var(--orange-accent-200)] text-xl font-bold w-11 h-11">
116+
<div className="flex items-center justify-center leading-none rounded-full p-1 bg-orange-50 dark:bg-orange-950 mr-2 text-[color:var(--orange-accent-200)] text-lg font-bold w-8 h-8">
117117
{product.data.name.substr(0, 1)}
118118
</div>
119119
)}
120-
<span className="font-semibold text-lg text-ellipsis overflow-hidden whitespace-nowrap">
120+
<span className="font-semibold text-md mt-0.5">
121121
{product.data.name}
122122
</span>
123123
</div>

0 commit comments

Comments
 (0)