mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-11 19:00:36 +08:00
37 lines
676 B
Svelte
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>
|