mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
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:
parent
617599b66b
commit
732c7c8675
@ -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>
|
||||
|
||||
@ -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> {formatRepositoryStarCount(repoStars)}</small>
|
||||
{:else}
|
||||
{formatRepositoryStarCount(repoStars)}
|
||||
{/if}
|
||||
</span>
|
||||
{formatRepositoryStarCount(repoStars)}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25em;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user