Skip to content

Commit c7861b5

Browse files
committed
omit links element for sv add-ons
1 parent 1555565 commit c7861b5

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

apps/svelte.dev/src/routes/packages/PackageCard.svelte

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
</a>
7171

7272
<!-- this is a sibling element so that we don't have links inside links -->
73-
<div class="links">
74-
<span style="display: flex; gap: 0.75rem">
75-
{#if !pkg.svAlias}
73+
{#if !pkg.svAlias}
74+
<div class="links">
75+
<span style="display: flex; gap: 0.75rem">
7676
<a
7777
href="https://npmjs.org/package/{pkg.name}"
7878
target="_blank"
@@ -81,20 +81,20 @@
8181
aria-label="View on npm"
8282
onclick={(e) => e.stopPropagation()}
8383
></a>
84-
{/if}
8584

86-
{#if pkg.repo_url}
87-
<a
88-
href={pkg.repo_url}
89-
target="_blank"
90-
rel="noreferrer"
91-
data-icon="github"
92-
aria-label="View on GitHub"
93-
onclick={(e) => e.stopPropagation()}
94-
></a>
95-
{/if}
96-
</span>
97-
</div>
85+
{#if pkg.repo_url}
86+
<a
87+
href={pkg.repo_url}
88+
target="_blank"
89+
rel="noreferrer"
90+
data-icon="github"
91+
aria-label="View on GitHub"
92+
onclick={(e) => e.stopPropagation()}
93+
></a>
94+
{/if}
95+
</span>
96+
</div>
97+
{/if}
9898
</article>
9999

100100
<style>

0 commit comments

Comments
 (0)