Split revision descriptions at a new line

In the revisions listing we are trying to display the whole revision
text, which should be trimmed at a new line, or after an amount of
chars.
This commit is contained in:
Sebastian Martinez
2025-07-14 16:22:31 +02:00
parent 2698a5a6d7
commit 5954d8e822
+1 -1
View File
@@ -85,7 +85,7 @@
<RevisionBadges {revision} {revisions} />
<span class="txt-overflow">
{#if revision.description[0].body.trim()}
{revision.description[0].body}
{revision.description[0].body.split("\n")[0]}
{:else}
<span
class="txt-missing"