Files
fnx_web/svelte/src/filesystem/Breadcrumbs.svelte
Fornax 277637511c Split filesystem up in components
Also thumbnails work now
2023-05-17 15:34:56 +02:00

25 lines
452 B
Svelte

<script>
export let state = {}
export let navigator
</script>
{#each state.path as node, i (node.path)}
<a
href={state.path_root+node.path}
class="breadcrumb button"
class:button_highlight={state.base_index === i}
on:click|preventDefault={() => {navigator.navigate(node.path, true)}}>
{node.name}
</a>
{/each}
<style>
.breadcrumb {
min-width: 1em;
text-align: center;
padding: 6px 8px;
margin: 4px;
word-break: break-all;
}
</style>