diff --git a/src/lib/components/layout/Header.svelte b/src/lib/components/layout/Header.svelte index 8ce63b5..3ec25cc 100644 --- a/src/lib/components/layout/Header.svelte +++ b/src/lib/components/layout/Header.svelte @@ -1,11 +1,13 @@ - - @@ -70,10 +62,8 @@ - - (showBgMenu = !showBgMenu)} + + - - - {#if showBgMenu} - + + {#each bgOptions as opt (opt.value)} - { - theme.setBackground(opt.value); - showBgMenu = false; - }} - class="flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors {theme.backgroundType === opt.value + theme.setBackground(opt.value)} > {#if theme.backgroundType === opt.value} {/if} {$t(opt.labelKey)} - + {/each} - - {/if} - + + + {#if user} @@ -142,10 +129,8 @@ {#if user} - - (showUserMenu = !showUserMenu)} + + {user.displayName} {/if} - - - {#if showUserMenu} - + + {user.displayName} {user.email} - (showUserMenu = false)} - class="flex w-full items-center gap-2 rounded-sm px-3 py-1.5 text-sm text-popover-foreground transition-colors hover:bg-accent" + goto('/settings')} > {$t('settings.title')} - + - (showUserMenu = false)} - class="flex w-full items-center gap-2 rounded-sm px-3 py-1.5 text-sm text-popover-foreground transition-colors hover:bg-accent" + goto('/settings/api-tokens')} > API Tokens - + - - + + + {$t('auth.logout')} - + - - {/if} - + + + {:else} 0} {#if !collapsed} - (boardsExpanded = !boardsExpanded)} + class="mb-1 flex w-full items-center justify-between px-2 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/50 transition-colors hover:text-sidebar-foreground/80" > - {$t('nav.boards')} - + {$t('nav.boards')} + + + + {/if} - {#each boards as board (board.id)} - ui.closeMobileSidebar()} - > - {#if board.icon} - - {:else} - + {#each boards as board (board.id)} + ui.closeMobileSidebar()} > - {board.name.charAt(0).toUpperCase()} - - {/if} - {#if !collapsed} - {board.name} - {/if} - - {/each} + {#if board.icon} + + {:else} + + {board.name.charAt(0).toUpperCase()} + + {/if} + {#if !collapsed} + {board.name} + {/if} + + {/each} + + {/if} {/if}
{user.displayName}
{user.email}
(boardsExpanded = !boardsExpanded)} + class="mb-1 flex w-full items-center justify-between px-2 text-xs font-medium uppercase tracking-wider text-sidebar-foreground/50 transition-colors hover:text-sidebar-foreground/80" > - {$t('nav.boards')} -