mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
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:
@@ -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}
|
||||
|
||||
@@ -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={{
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user