Files
radicle-explorer/src/components/RepoTeaser.svelte
T

37 lines
676 B
Svelte

<script lang="ts">
import Icon from "@app/components/Icon.svelte";
interface Props {
name: string;
seeding: number;
}
const { name, seeding }: Props = $props();
</script>
<style>
.teaser {
align-items: center;
height: 34px;
margin: 0 4px 1rem 12px;
}
.seeding {
margin-left: auto;
padding: 0 6px;
background-color: var(--color-fill-ghost);
gap: 4px;
}
</style>
<div class="global-flex teaser">
<Icon name="repo" />
<span title={name} class="txt-small txt-overflow txt-semibold">
{name}
</span>
<div class="global-counter txt-small seeding">
<Icon name="seedling-filled" />
{seeding}
</div>
</div>