Skip to content

Commit

Permalink
fix Package_Summary homepage formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Mar 23, 2024
1 parent 05d07b6 commit 2b22117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-clouds-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ryanatkn/fuz": patch
---

fix `Package_Detail` homepage formatting
4 changes: 2 additions & 2 deletions src/lib/Package_Detail.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import {page} from '$app/stores';
import {ensure_end, strip_end, strip_start} from '@ryanatkn/belt/string.js';
import {format_host, type Package_Meta} from '@ryanatkn/gro/package_meta.js';
import type {Package_Meta} from '@ryanatkn/gro/package_meta.js';
export let pkg: Package_Meta; // TODO normalized version with cached primitives?
Expand Down Expand Up @@ -76,7 +76,7 @@
style:height="16px"
style:margin-right="var(--space_xs)"
/>
{format_host(homepage_url)}
{strip_end(strip_start(homepage_url, 'https://'), '/')}
</a>
</div>
</slot>
Expand Down

0 comments on commit 2b22117

Please sign in to comment.