From 69ad29a1db1c510de16e2afae871520f38156c39 Mon Sep 17 00:00:00 2001 From: mikesealey Date: Wed, 20 Nov 2024 15:41:07 +0000 Subject: [PATCH 1/8] adds settings to allow users to change logo size --- .../_components/Navigation/index.svelte | 13 +++++++++++ .../builder/src/stores/builder/navigation.js | 1 + .../client/src/components/app/Layout.svelte | 22 +++++++++++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte index 7c8b03caca4..21424d6331b 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte @@ -34,6 +34,7 @@ { value: "Right", barIcon: "TextAlignRight" }, ] const widthOptions = ["Max", "Large", "Medium", "Small"] + const logoSizeOptions = ["18px", "24px", "36px", "48px", "72px", "96px"] $: bindings = getBindableProperties( $selectedScreen, @@ -171,6 +172,18 @@ updateOnChange: false, }} /> + update("logoSize", logoSize)} + {bindings} + props={{ + updateOnChange: true, + options: logoSizeOptions, + appendBindingsAsOptions: false, + }} + /> - {title} + {title} {:else if logoLinkUrl} - {title} + {title} {:else} - {title} + {title} {/if} {/if} {#if !hideTitle && title} @@ -522,7 +535,8 @@ flex: 1 1 auto; } .logo img { - height: 36px; + width: var(--logo-size); + height: var(--logo-size); } .logo :global(h1) { font-weight: 600; From ebdf45265cb1db10911abe44e038b665d6012b28 Mon Sep 17 00:00:00 2001 From: mikesealey Date: Wed, 20 Nov 2024 15:49:59 +0000 Subject: [PATCH 2/8] makes the currently-set value display in the logoSize dropdown --- .../[componentId]/_components/Navigation/index.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte index 21424d6331b..558b5c3d50f 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte @@ -175,7 +175,7 @@ update("logoSize", logoSize)} {bindings} props={{ From 4baf3e07a25b4440a96b6d651d66b0ff77d65a6d Mon Sep 17 00:00:00 2001 From: mikesealey Date: Wed, 20 Nov 2024 17:04:52 +0000 Subject: [PATCH 3/8] wip adding option to display text under logo for large logos --- .../_components/Navigation/index.svelte | 6 ++ .../builder/src/stores/builder/navigation.js | 1 + .../client/src/components/app/Layout.svelte | 64 +++++++++++-------- 3 files changed, 45 insertions(+), 26 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte index 558b5c3d50f..ed00b01a426 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/index.svelte @@ -131,6 +131,12 @@ options: alignmentOptions, }} /> + update("textBelow", textBelow)} + value={$nav.textBelow} + /> {/if} {/if} -