Skip to content

Commit 712adde

Browse files
fix(details): improve the look of commit descriptions, fix rendering
1 parent c1184b8 commit 712adde

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/routes/[pid=pid]/[org]/[repo]/[id=number]/PageRenderer.svelte

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@
552552
>
553553
<Steps class="my-4">
554554
{#each commits as commit (commit.sha)}
555-
{@const [commitMessage, ...commitDescription] = commit.commit.message.split("\n")}
555+
{@const [commitMessage, ...commitDescriptions] = commit.commit.message.split("\n")}
556+
{@const commitDescription = commitDescriptions.join("\n").trim()}
556557
<Step icon={GitCommitVertical}>
557558
<div class="flex flex-col-reverse items-start justify-between sm:flex-row sm:gap-16">
558559
<!-- Left part: commit message, description & author -->
@@ -595,11 +596,8 @@
595596
{/if}
596597
{/if}
597598
</div>
598-
{#if commitDescription.length > 0}
599-
<MarkdownRenderer
600-
markdown={commitDescription.join(" ")}
601-
class="prose-sm max-w-full text-muted-foreground"
602-
/>
599+
{#if commitDescriptions.length}
600+
<pre class="text-sm text-muted-foreground">{commitDescription}</pre>
603601
{/if}
604602
</div>
605603
<!-- Right part: verification badge & sha -->

0 commit comments

Comments
 (0)