Event description include line breaks

Closes #880
This commit is contained in:
Kalle
2022-09-03 20:47:20 +03:00
parent de54cfd57e
commit 24a151dd3b
2 changed files with 7 additions and 1 deletions

View File

@@ -233,7 +233,9 @@ function Description() {
<Avatar user={data.event} size="xs" />
{discordFullName(data.event)}
</div>
<div data-cy="event-description">{data.event.description}</div>
<div data-cy="event-description" className="whitespace-pre-wrap">
{data.event.description}
</div>
</div>
</Section>
);

View File

@@ -78,6 +78,10 @@
visibility: hidden;
}
.whitespace-pre-wrap {
white-space: pre-wrap;
}
.flex {
display: flex;
}