feat(app-widget): multiline description (#3873)

This commit is contained in:
Meier Lukas
2025-08-16 23:39:20 +02:00
committed by GitHub
parent a88f1c3cba
commit 950636e81d
3 changed files with 21 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
import { Fragment } from "react";
import Link from "next/link";
import { redirect } from "next/navigation";
import { ActionIcon, ActionIconGroup, Anchor, Avatar, Card, Group, Stack, Text, Title } from "@mantine/core";
@@ -98,7 +99,12 @@ const AppCard = async ({ app }: AppCardProps) => {
</Text>
{app.description && (
<Text size="sm" c="gray.6" lineClamp={4}>
{app.description}
{app.description.split("\n").map((line, index) => (
<Fragment key={index}>
{line}
<br />
</Fragment>
))}
</Text>
)}
{app.href && (