diff --git a/packages/client/src/components/app/Layout.svelte b/packages/client/src/components/app/Layout.svelte index 93cbb84e6d..a7733c035f 100644 --- a/packages/client/src/components/app/Layout.svelte +++ b/packages/client/src/components/app/Layout.svelte @@ -23,18 +23,17 @@ export let navBackground export let navTextColor export let navWidth - export let pageWidth const NavigationClasses = { Top: "top", Left: "left", None: "none", } - const WidthClasses = { - Max: "max", - Large: "l", - Medium: "m", - Small: "s", + const WidthStyles = { + Max: "100%", + Large: "1400px", + Medium: "1100px", + Small: "800px", } // Set some layout context. This isn't used in bindings but can be used @@ -49,8 +48,8 @@ $: validLinks = links?.filter(link => link.text && link.url) || [] $: typeClass = NavigationClasses[navigation] || NavigationClasses.None - $: navWidthClass = WidthClasses[navWidth || width] || WidthClasses.Large - $: pageWidthClass = WidthClasses[pageWidth || width] || WidthClasses.Large + $: navWidthStyle = WidthStyles[navWidth || width] || WidthStyles.Large + $: pageWidthStyle = WidthStyles[width] || WidthStyles.Max $: navStyle = getNavStyle( navBackground, navTextColor, @@ -117,7 +116,7 @@ on:click={$builderStore.inBuilder ? builderStore.actions.clickNav : null} style={navStyle} > -