Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Show "no description" in revision selector when missing
Rūdolfs Ošiņš committed 1 year ago
commit 1a86e521296899f18cd4ecc19660192c2ab7020b
parent d5632ed5349fed88cb14f2780100e5b49679df2d
1 file changed +9 -1
modified src/components/RevisionSelector.svelte
@@ -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>