mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Touches paddings, margins, gaps and line-heights. Doesn't touch positioning and widths
30 lines
662 B
Svelte
30 lines
662 B
Svelte
<script lang="ts">
|
|
import type { Revision } from "@bindings/cob/patch/Revision";
|
|
|
|
interface Props {
|
|
revision: Revision;
|
|
revisions: Revision[];
|
|
}
|
|
|
|
/* eslint-disable prefer-const */
|
|
let { revision, revisions }: Props = $props();
|
|
/* eslint-enable prefer-const */
|
|
</script>
|
|
|
|
{#if revision.id === revisions.slice(-1)[0].id}
|
|
<span
|
|
class="global-counter"
|
|
style:height="1.375rem"
|
|
style:color="var(--color-foreground-contrast)">
|
|
Latest
|
|
</span>
|
|
{/if}
|
|
{#if revision.id === revisions[0].id}
|
|
<span
|
|
class="global-counter"
|
|
style:height="1.375rem"
|
|
style:color="var(--color-foreground-contrast)">
|
|
Initial
|
|
</span>
|
|
{/if}
|