Browse Source

feat(repo-details): combine duplicate headings

combine name and identifer into a single heading if they are identical
master
DanConwayDev 2 years ago
parent
commit
d87ac72080
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 14
      src/lib/components/repo/RepoDetails.svelte

14
src/lib/components/repo/RepoDetails.svelte

@ -24,6 +24,19 @@ @@ -24,6 +24,19 @@
</script>
<div class="prose w-full max-w-md">
{#if name == identifier}
{#if loading}
<div class="skeleton my-3 h-5 w-20"></div>
<div class="skeleton my-2 h-4"></div>
<div class="skeleton my-2 mb-3 h-4 w-2/3"></div>
{:else if !name || name.length == 0}
<h4>name / identifier</h4>
<div>none</div>
{:else}
<h4>name / identifier</h4>
<p class="my-2 break-words text-sm">{name}</p>
{/if}
{:else}
{#if loading}
<div class="skeleton my-3 h-5 w-20"></div>
<div class="skeleton my-2 h-4"></div>
@ -46,6 +59,7 @@ @@ -46,6 +59,7 @@
<h4>identifier</h4>
<p class="my-2 break-words text-sm">{identifier}</p>
{/if}
{/if}
{#if loading}
<div class="skeleton my-3 h-5 w-20"></div>
<div class="skeleton my-2 h-4"></div>

Loading…
Cancel
Save