fix: event description breakline

This commit is contained in:
MTG2000
2022-09-12 17:36:16 +03:00
parent e8624a982b
commit d1ff2a1df3
2 changed files with 1 additions and 10 deletions

View File

@@ -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,

View File

@@ -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>