From 15ddb749282ec5578cc1ccc1eae261545eccbfc8 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Wed, 1 Apr 2026 11:04:56 -0500 Subject: [PATCH] Move logo sizing from `` to wrapper `
` in logo carousel Use a wrapper `
` to control each logo's width instead of styling the `` elements directly. This also replaces inline styles on the `` elements with Tailwind utility classes (`no-underline`, `border-none`) and simplifies the map callbacks. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/snippets/LogoCarousel.jsx | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/docs/snippets/LogoCarousel.jsx b/docs/snippets/LogoCarousel.jsx index ece6d11..886f43f 100644 --- a/docs/snippets/LogoCarousel.jsx +++ b/docs/snippets/LogoCarousel.jsx @@ -322,28 +322,26 @@ export const LogoCarousel = () => { <>
- {row1Doubled.map((logo, i) => { - const imgStyle = { width: 150 * (logo.scale || 1), maxWidth: "100%" }; - return ( - - {logo.name} - {logo.name} + {row1Doubled.map((logo, i) => ( +
+ + {logo.name} + {logo.name} - ); - })} +
+ ))}
- {row2Doubled.map((logo, i) => { - const imgStyle = { width: 150 * (logo.scale || 1), maxWidth: "100%" }; - return ( - - {logo.name} - {logo.name} + {row2Doubled.map((logo, i) => ( +
+ + {logo.name} + {logo.name} - ); - })} +
+ ))}