diff --git a/src/lib/components/NavigationItem.svelte b/src/lib/components/NavigationItem.svelte index fd8d1b2d3..50c397b4c 100644 --- a/src/lib/components/NavigationItem.svelte +++ b/src/lib/components/NavigationItem.svelte @@ -9,12 +9,13 @@ active?: boolean; onclick?: () => void; onHover?: () => void; + oncontextmenu?: (e: MouseEvent) => void; class?: string; showLabel?: boolean; indented?: boolean; } - let { icon, label, badge, tooltip, active = false, onclick, onHover, class: className = '', showLabel = true, indented = false }: Props = $props(); + let { icon, label, badge, tooltip, active = false, onclick, onHover, oncontextmenu, class: className = '', showLabel = true, indented = false }: Props = $props(); // When label is hidden, always show tooltip on hover const effectiveTooltip = $derived(showLabel ? tooltip : (tooltip || label)); @@ -53,6 +54,7 @@ + {/if} + {/each} + + {/if} + {#if contextMenu.currentFolderId} + + {/if} + {#if folders.length === 0 && !contextMenu.currentFolderId} +
+ No folders yet +
+ {/if} + +{/if} + {#if showCreateFolderModal}