Show "no description" in revision selector when missing

This commit is contained in:
Rūdolfs Ošiņš
2025-01-23 15:36:56 -06:00
parent d5632ed534
commit 1a86e52129
+9 -1
View File
@@ -113,7 +113,15 @@
</span>
<RevisionBadges {revision} {revisions} />
<span class="txt-overflow">
{revision.description[0].body}
{#if revision.description[0].body.trim()}
{revision.description[0].body}
{:else}
<span
class="txt-missing"
style:font-weight="var(--font-weight-regular)">
No description.
</span>
{/if}
</span>
</div>
</DropdownListItem>