mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-09 09:24:30 +01:00
fix: event description breakline
This commit is contained in:
@@ -200,15 +200,6 @@ async function createSkills() {
|
||||
async function createTournament() {
|
||||
console.log("Creating Tournament");
|
||||
|
||||
await prisma.tournamentFAQ.createMany({
|
||||
|
||||
data: tournamentMock.faqs.map(i => ({
|
||||
tournament_id: 1,
|
||||
question: i.question,
|
||||
answer: i.answer
|
||||
}))
|
||||
})
|
||||
return
|
||||
const createdTournament = await prisma.tournament.create({
|
||||
data: {
|
||||
title: tournamentMock.title,
|
||||
|
||||
@@ -58,7 +58,7 @@ export default function EventCard({ event }: Props) {
|
||||
<p className="text-body4 text-gray-600 line-clamp-2">
|
||||
{trimText(event.description, 90)}
|
||||
</p>
|
||||
<span className={`mt-8 text-body5 self-start px-8 py-4 rounded-20 ${mapTypeToBadge[event.type].color}`}>
|
||||
<span className={`mt-8 text-body5 self-start px-8 py-4 rounded-20 whitespace-pre-line ${mapTypeToBadge[event.type].color}`}>
|
||||
{mapTypeToBadge[event.type].text}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user