diff --git a/packages/server/src/constants/layouts.js b/packages/server/src/constants/layouts.js index a9b589af7e..f73c6519bc 100644 --- a/packages/server/src/constants/layouts.js +++ b/packages/server/src/constants/layouts.js @@ -34,13 +34,11 @@ const EMPTY_LAYOUT = { _styles: { active: {}, hover: {}, - normal: { - "background-image": "#f5f5f5", - }, + normal: {}, selected: {}, }, navigation: "Top", - contentWidth: "Large", + width: "Large", links: [ { text: "Home", @@ -84,13 +82,11 @@ const BASE_LAYOUTS = [ _styles: { active: {}, hover: {}, - normal: { - background: "#f5f5f5", - }, + normal: {}, selected: {}, }, navigation: "Top", - contentWidth: "Large", + width: "Large", links: [ { text: "Home", @@ -132,13 +128,11 @@ const BASE_LAYOUTS = [ _styles: { active: {}, hover: {}, - normal: { - background: "#f5f5f5", - }, + normal: {}, selected: {}, }, navigation: "Top", - contentWidth: "Large", + width: "Large", links: [ { text: "Home", diff --git a/packages/standard-components/manifest.json b/packages/standard-components/manifest.json index 1bc8967ada..bb67771a71 100644 --- a/packages/standard-components/manifest.json +++ b/packages/standard-components/manifest.json @@ -45,8 +45,8 @@ }, { "type": "select", - "label": "Content Width", - "key": "contentWidth", + "label": "Width", + "key": "width", "options": ["Small", "Medium", "Large"], "defaultValue": "Large" }, diff --git a/packages/standard-components/src/Layout.svelte b/packages/standard-components/src/Layout.svelte index ffd8e2473a..fa3a118f4f 100644 --- a/packages/standard-components/src/Layout.svelte +++ b/packages/standard-components/src/Layout.svelte @@ -12,7 +12,7 @@ export let navigation = "Top" export let sticky = false export let links - export let contentWidth = "Large" + export let width = "Large" const navigationClasses = { Top: "top", @@ -27,7 +27,7 @@ $: validLinks = links?.filter(link => link.text && link.url) || [] $: typeClass = navigationClasses[navigation] || "none" - $: widthClass = widthClasses[contentWidth] || "l" + $: widthClass = widthClasses[width] || "l" let mobileOpen = false const isInternal = url => { @@ -46,7 +46,7 @@