Show a commit message placeholder when there is no message

This way we can still navigate to the single commit view.
This commit is contained in:
Rūdolfs Ošiņš
2026-05-28 10:25:40 +02:00
parent 676597a669
commit 74b3c079ad
3 changed files with 23 additions and 3 deletions
+7 -1
View File
@@ -76,7 +76,13 @@
commit: commit.id,
}}>
<div class="summary" use:twemoji>
<InlineTitle fontSize="body-m-regular" content={commit.summary} />
{#if !commit.summary}
<span style:color="var(--color-text-tertiary)">
No commit message
</span>
{:else}
<InlineTitle fontSize="body-m-regular" content={commit.summary} />
{/if}
</div>
</Link>
{#if commit.description}
+9 -1
View File
@@ -86,7 +86,15 @@
<div class="header">
<div style="display:flex; flex-direction: column; gap: 0.5rem;">
<span class="title">
<InlineTitle fontSize="heading-l" content={header.summary} />
{#if !header.summary}
<span
class="txt-heading-l"
style:color="var(--color-text-tertiary)">
No commit message
</span>
{:else}
<InlineTitle fontSize="heading-l" content={header.summary} />
{/if}
<div class="button-container">
<Link
route={{
+7 -1
View File
@@ -87,7 +87,13 @@
}}>
<div style="position: relative;">
<div class="summary" use:twemoji>
<InlineTitle fontSize="body-m-regular" content={commit.summary} />
{#if !commit.summary}
<span style:color="var(--color-text-tertiary)">
No commit message
</span>
{:else}
<InlineTitle fontSize="body-m-regular" content={commit.summary} />
{/if}
</div>
</div>
</Link>