Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Website] Allow Card Titles to have two lines #1822

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions inlang/source-code/website/src/interface/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
>
<Switch>
Expand Down Expand Up @@ -128,7 +128,11 @@ export default function Card(props: { item: any; displayName: string }) {
</Show>
</div>
<div class="flex flex-col justify-between items-start">
<p class="m-0 mb-2 text-sm text-surface-800 line-clamp-1 leading-none no-underline font-semibold group-hover:text-surface-900 transition-colors">
<p
// eslint-disable-next-line solid/style-prop
style="text-wrap: balance;"
flornkm marked this conversation as resolved.
Show resolved Hide resolved
class="m-0 mb-2 text-sm text-surface-800 line-clamp-2 leading-none no-underline font-semibold group-hover:text-surface-900 transition-colors"
>
{props.displayName}
</p>
<Chip
Expand Down