Headless Improvements (#41)

This commit is contained in:
Ollie Taylor
2023-07-10 16:35:58 +01:00
committed by GitHub
parent 980588930a
commit 16366ec7f3
54 changed files with 1406 additions and 1034 deletions
@@ -0,0 +1,19 @@
<script lang="ts">
import { seconds_to_timestamp } from 'svelte-podcast';
export let value: number;
export let force_hours = false;
$: timestamp = seconds_to_timestamp(value, force_hours);
</script>
<span style="width:{timestamp.length}ch">{timestamp}</span>
<style>
span {
letter-spacing: 0.5px;
font-size: 0.8em;
display: block;
width: 8ch;
}
</style>