From 3b70325e5a4426fffbe408190bb4b8dfed922c66 Mon Sep 17 00:00:00 2001 From: Loris Sigrist Date: Tue, 5 Dec 2023 09:23:58 +0100 Subject: [PATCH 1/2] Allow two-line titles --- .../source-code/website/src/interface/components/Card.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inlang/source-code/website/src/interface/components/Card.tsx b/inlang/source-code/website/src/interface/components/Card.tsx index fed5a1f2bc..882f7fe8e7 100644 --- a/inlang/source-code/website/src/interface/components/Card.tsx +++ b/inlang/source-code/website/src/interface/components/Card.tsx @@ -31,7 +31,7 @@ export default function Card(props: { item: any; displayName: string }) { } class={ "relative no-underline z-10 flex justify-between gap-4 overflow-hidden flex-col group w-full bg-background transition-all border border-surface-200 rounded-xl hover:shadow-lg hover:shadow-surface-100 hover:border-surface-300 active:border-surface-400 " + - (showCover || app ? " " : " h-48 p-5") + (showCover || app ? " " : /* min-h-48 */ " min-h-[12rem] p-5") } > @@ -128,7 +128,10 @@ export default function Card(props: { item: any; displayName: string }) {
-

+

{props.displayName}

Date: Tue, 5 Dec 2023 09:37:55 +0100 Subject: [PATCH 2/2] Shut eslint up --- inlang/source-code/website/src/interface/components/Card.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/inlang/source-code/website/src/interface/components/Card.tsx b/inlang/source-code/website/src/interface/components/Card.tsx index 882f7fe8e7..2d9d129e58 100644 --- a/inlang/source-code/website/src/interface/components/Card.tsx +++ b/inlang/source-code/website/src/interface/components/Card.tsx @@ -129,6 +129,7 @@ export default function Card(props: { item: any; displayName: string }) {