Show a placeholder when there is no commit message

This commit is contained in:
Rūdolfs Ošiņš
2026-05-28 12:39:39 +02:00
parent b02c1556cb
commit 5c1efdeaa6
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -86,7 +86,11 @@
<div class="left" style:padding={flush ? "0" : undefined}>
<div class="message">
<div style:cursor={hoverable ? "pointer" : "default"} use:twemoji>
<InlineTitle fontSize="small" content={commit.summary} />
{#if !commit.summary}
<span class="txt-missing">No commit message</span>
{:else}
<InlineTitle fontSize="small" content={commit.summary} />
{/if}
</div>
{#if commit.message.trim() !== commit.summary.trim()}
<div class="commit-expand-button">
+7 -1
View File
@@ -176,7 +176,13 @@
<section class="meta">
<div class="meta-header">
<div class="meta-title">
<div class="summary txt-selectable">{commit.summary}</div>
<div class="summary txt-selectable">
{#if !commit.summary}
<span class="txt-missing">No commit message</span>
{:else}
{commit.summary}
{/if}
</div>
<div class="summary-meta">
<span class="summary-author">
<img