diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte
index 29258a1a31..d55b00ef9c 100644
--- a/packages/client/src/components/ClientApp.svelte
+++ b/packages/client/src/components/ClientApp.svelte
@@ -208,6 +208,7 @@
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
+ overflow: hidden;
}
.error {
diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte
index 7feb92fb86..f9e3027ecf 100644
--- a/packages/client/src/components/Component.svelte
+++ b/packages/client/src/components/Component.svelte
@@ -12,7 +12,11 @@
import { writable, get } from "svelte/store"
import * as AppComponents from "components/app"
import Router from "./Router.svelte"
- import { enrichProps, propsAreSame } from "utils/componentProps"
+ import {
+ enrichProps,
+ propsAreSame,
+ getSettingsDefinition,
+ } from "utils/componentProps"
import { builderStore, devToolsStore, componentStore } from "stores"
import { Helpers } from "@budibase/bbui"
import Manifest from "manifest.json"
@@ -207,22 +211,6 @@
return type ? Manifest[type] : null
}
- // Gets the definition of this component's settings from the manifest
- const getSettingsDefinition = definition => {
- if (!definition) {
- return []
- }
- let settings = []
- definition.settings?.forEach(setting => {
- if (setting.section) {
- settings = settings.concat(setting.settings || [])
- } else {
- settings.push(setting)
- }
- })
- return settings
- }
-
const getInstanceSettings = (instance, settingsDefinition) => {
// Get raw settings
let settings = {}
diff --git a/packages/client/src/components/devtools/DevTools.svelte b/packages/client/src/components/devtools/DevTools.svelte
index e8d9c1cb44..731695e29c 100644
--- a/packages/client/src/components/devtools/DevTools.svelte
+++ b/packages/client/src/components/devtools/DevTools.svelte
@@ -38,6 +38,7 @@
background: var(--spectrum-alias-background-color-secondary);
flex: 0 0 320px;
border-left: 1px solid var(--spectrum-global-color-gray-300);
+ overflow: auto;
}
.devtools.mobile {
display: none;
diff --git a/packages/client/src/components/devtools/DevToolsComponentSetting.svelte b/packages/client/src/components/devtools/DevToolsComponentSetting.svelte
new file mode 100644
index 0000000000..9bbbf2615c
--- /dev/null
+++ b/packages/client/src/components/devtools/DevToolsComponentSetting.svelte
@@ -0,0 +1,13 @@
+
+
+{#if prettyName}
+