diff --git a/packages/builder/src/components/design/NavigationPanel/NewLayoutModal.svelte b/packages/builder/src/components/design/NavigationPanel/NewLayoutModal.svelte
index 14c6c5ab31..0ed9014eac 100644
--- a/packages/builder/src/components/design/NavigationPanel/NewLayoutModal.svelte
+++ b/packages/builder/src/components/design/NavigationPanel/NewLayoutModal.svelte
@@ -1,5 +1,4 @@
@@ -49,18 +48,6 @@
margin-right: 16px;
}
- .nav__controls {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- align-items: center;
- gap: 16px;
- }
- .nav__controls > div:hover {
- cursor: pointer;
- color: #4285f4;
- }
-
.nav__menu {
display: flex;
flex-direction: row;
diff --git a/packages/standard-components/src/Section.svelte b/packages/standard-components/src/Section.svelte
index e8cc02c961..6aa6d71a07 100644
--- a/packages/standard-components/src/Section.svelte
+++ b/packages/standard-components/src/Section.svelte
@@ -5,6 +5,7 @@
const component = getContext("component")
export let type = "mainSidebar"
export let gap = "16px"
+ export let minSize = 250
let layoutMap = {
mainSidebar: 2,
@@ -17,7 +18,7 @@
$: columnsDependingOnSize = calculateColumns(containerWidth)
function calculateColumns(parentWidth) {
- const numberOfAllowedColumns = Math.floor(parentWidth / 250) || 100
+ const numberOfAllowedColumns = Math.floor(parentWidth / minSize) || 100
if (layoutMap[type] <= numberOfAllowedColumns) {
return false
} else if (layoutMap[type] > numberOfAllowedColumns) {
diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js
index b21349c385..b4d2104c5c 100644
--- a/packages/standard-components/src/index.js
+++ b/packages/standard-components/src/index.js
@@ -20,6 +20,7 @@ export { default as stackedlist } from "./StackedList.svelte"
export { default as card } from "./Card.svelte"
export { default as text } from "./Text.svelte"
export { default as navigation } from "./Navigation.svelte"
+export { default as layout } from "./layout/Layout.svelte"
export { default as link } from "./Link.svelte"
export { default as heading } from "./Heading.svelte"
export { default as image } from "./Image.svelte"
diff --git a/packages/standard-components/src/layout/Layout.svelte b/packages/standard-components/src/layout/Layout.svelte
new file mode 100644
index 0000000000..9238bdf34e
--- /dev/null
+++ b/packages/standard-components/src/layout/Layout.svelte
@@ -0,0 +1,95 @@
+
+
+
+ {#if navigationTypes.get(navigation)}
+
+
+ {#if !hideLogo}
+
+ {/if}
+ {#if !hideTitle}
+
{title}
+ {/if}
+
+
+
+
+
+
+ {/if}
+
+
+
+
+
+
diff --git a/packages/standard-components/src/layout/Mobile.svelte b/packages/standard-components/src/layout/Mobile.svelte
new file mode 100644
index 0000000000..249256a3a0
--- /dev/null
+++ b/packages/standard-components/src/layout/Mobile.svelte
@@ -0,0 +1,33 @@
+
+
+
+
+ {#each links as { text, url }}
+
+ - {text}
+ {/each}
+
+
+
+
+
diff --git a/packages/standard-components/src/layout/Navigation.svelte b/packages/standard-components/src/layout/Navigation.svelte
new file mode 100644
index 0000000000..e01e1ce121
--- /dev/null
+++ b/packages/standard-components/src/layout/Navigation.svelte
@@ -0,0 +1,72 @@
+
+
+
+ {#if navigation === "Top"}
+
+ {#each links as { text, url }}
+ - {text}
+ {/each}
+
+ {:else}
+
+ {#each links as { text, url }}
+
+ - {text}
+ {/each}
+
+ {/if}
+
+
+
(mobileOpen = !mobileOpen)}
+ />
+ {#if mobileOpen}
+ (mobileOpen = !mobileOpen)} />
+ {/if}
+
+
+