Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/lib/components/bottom-nav-links.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@

let { open = false, sections }: Props = $props();

const isNotLastSection = (i: number): boolean => i !== sections.length - 1;
const visualSections = $derived([...sections].reverse());

const isNotLastSection = (i: number): boolean =>
i !== visualSections.length - 1;
</script>

{#if open}
<div
class="flex h-full flex-col-reverse justify-start gap-6 overflow-auto px-4 py-8"
>
{#each sections as section, i (i)}
<div class="flex h-full flex-col justify-start gap-6 overflow-auto px-4 py-8">
{#each visualSections as section, i (i)}
<NavSection navItems={section} />
{#if isNotLastSection(i)}
<hr class="border-subtle" />
Expand Down
Loading