Chore: fix repo stars alignment (#63476)

This is the only one I know of that's left from SRCH-551, so saying this fixes SRCH-551.
This commit is contained in:
Camden Cheek 2024-06-26 03:03:29 -06:00 committed by GitHub
parent 617599b66b
commit 732c7c8675
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 10 deletions

View File

@ -84,7 +84,7 @@
{/if}
<div class="footer">
<RepoStars repoStars={data.stars} small />
<RepoStars repoStars={data.stars} />
</div>
</div>
@ -198,7 +198,7 @@
.footer {
display: flex;
color: var(--text-muted);
align-items: center;
justify-content: flex-end;
font-size: var(--font-size-tiny);
}
</style>

View File

@ -3,14 +3,17 @@
import Icon from '$lib/Icon.svelte'
export let repoStars: number
export let small = false
</script>
<span>
<div>
<Icon inline icon={ILucideStar} aria-label="Repository stars" />
{#if small}
<small>&nbsp;{formatRepositoryStarCount(repoStars)}</small>
{:else}
&nbsp;{formatRepositoryStarCount(repoStars)}
{/if}
</span>
{formatRepositoryStarCount(repoStars)}
</div>
<style lang="scss">
div {
display: flex;
align-items: center;
gap: 0.25em;
}
</style>