From 1898a005603e092f0176e2b71e554c2d6d028616 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Fri, 5 Jul 2024 13:10:10 +0200 Subject: [PATCH] feat(frontend): add vertical navbars (#4027) * feat(frontend): add vertical navbars * feat(frontend): add vertical navbars --- .../apps/components/display/AppNavbar.svelte | 17 +++++++++++++++-- .../components/display/AppNavbarItem.svelte | 8 ++++++-- .../apps/editor/component/components.ts | 11 ++++++++++- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/apps/components/display/AppNavbar.svelte b/frontend/src/lib/components/apps/components/display/AppNavbar.svelte index 832ccfbc85..5b47001913 100644 --- a/frontend/src/lib/components/apps/components/display/AppNavbar.svelte +++ b/frontend/src/lib/components/apps/components/display/AppNavbar.svelte @@ -54,7 +54,13 @@ {#if render} -
+
{#if resolvedConfig.logo?.selected === 'yes'} {resolvedConfig?.title ?? 'No Title'}
-
+
{#each navbarItems ?? [] as navbarItem, index (index)} {navbarItem.caption} @@ -83,6 +95,7 @@ borderColor={resolvedConfig?.borderColor} {index} bind:output + orientation={resolvedConfig?.orientation} /> {/each} diff --git a/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte b/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte index 0dca9d79fc..f990a8c024 100644 --- a/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte +++ b/frontend/src/lib/components/apps/components/display/AppNavbarItem.svelte @@ -23,6 +23,7 @@ currentPath: string }> } + export let orientation: 'horizontal' | 'vertical' | undefined = undefined let icon: any @@ -143,8 +144,10 @@ {#if !resolvedHidden}