diff --git a/components/reference-cards.tsx b/components/reference-cards.tsx index bbe788d..07556c4 100644 --- a/components/reference-cards.tsx +++ b/components/reference-cards.tsx @@ -16,16 +16,21 @@ export function ReferenceCards({ className, cardClassName, lineClamp }: Referenc return (
{REFERENCES.map((item) => { + const quoteText = getLocalizedValue(item.quote, locale); + const quoteContent = lineClamp ? ( + {quoteText} + ) : ( + quoteText + ); + const card = ( *:last-child]:mt-auto ${ - lineClamp ? "[&>*:first-child]:line-clamp-4" : "" - } ${cardClassName || "w-70 shrink-0"}`} + className={`flex flex-col rounded-sm ${cardClassName || "w-70 shrink-0"}`} /> ); diff --git a/components/references-detail-content.tsx b/components/references-detail-content.tsx index 8bb5869..c9f0379 100644 --- a/components/references-detail-content.tsx +++ b/components/references-detail-content.tsx @@ -15,8 +15,8 @@ export function ReferencesDetailContent() { diff --git a/components/references-section.tsx b/components/references-section.tsx index d73b148..b375060 100644 --- a/components/references-section.tsx +++ b/components/references-section.tsx @@ -7,9 +7,9 @@ export function ReferencesSection() {
{/* We use two sets of cards for seamless infinite marquee effect */} -
- - +
+ +