mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-15 08:00:36 +08:00
- by default open repos on the home view - show a rendered README on the repo home page - show repo metadata: visibility, canonical branch, threshold, delegates and allow list with aliases - make layout responsive on repo home - add copy button to code blocks in markdown
36 lines
655 B
Svelte
36 lines
655 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;
|
|
width: 100%;
|
|
}
|
|
|
|
.seeding {
|
|
margin-left: auto;
|
|
padding: 0 0.375rem;
|
|
background-color: var(--color-fill-ghost);
|
|
gap: 0.25rem;
|
|
}
|
|
</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>
|