-
- {#if !filters?.length}
- Add your first filter expression.
- {:else}
- Results are filtered to only those which match all of the following
- constraints.
- {/if}
-
- {#if filters?.length}
+ {#if !rawFilters?.length}
+ Add your first filter expression.
+ {:else}
@@ -167,7 +192,7 @@
- {#each filters as filter, idx}
+ {#each rawFilters as filter, idx}
diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPanel.svelte
index c4b80dcc3a..e97e3ee15c 100644
--- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPanel.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPanel.svelte
@@ -61,6 +61,13 @@
align-items: center;
gap: var(--spacing-l);
}
+ .header-left {
+ flex: 1 1 auto;
+ width: 0;
+ }
+ .header-left :global(> *) {
+ max-width: 100%;
+ }
.header-left :global(.spectrum-Picker) {
font-weight: 600;
color: var(--spectrum-global-color-gray-900);
diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ConditionalUIDrawer.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ConditionalUIDrawer.svelte
index 74f0c930cd..855c42173b 100644
--- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ConditionalUIDrawer.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/components/[componentId]/_components/settings/ConditionalUIDrawer.svelte
@@ -282,12 +282,16 @@
gap: var(--spacing-l);
display: grid;
align-items: center;
- grid-template-columns: auto 160px auto 1fr 130px 130px 1fr auto auto;
+ grid-template-columns:
+ auto 150px auto minmax(140px, 1fr) 120px 100px minmax(140px, 1fr)
+ auto auto;
border-radius: var(--border-radius-s);
transition: background-color ease-in-out 130ms;
}
.condition.update {
- grid-template-columns: auto 160px 1fr auto 1fr auto 1fr 130px 130px 1fr auto auto;
+ grid-template-columns:
+ auto 150px minmax(140px, 1fr) auto minmax(140px, 1fr) auto
+ minmax(140px, 1fr) 120px 100px minmax(140px, 1fr) auto auto;
}
.condition:hover {
background-color: var(--spectrum-global-color-gray-100);
diff --git a/packages/cli/package.json b/packages/cli/package.json
index bb283d751a..527cba04b3 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/cli",
- "version": "2.1.43-alpha.10",
+ "version": "2.1.43-alpha.12",
"description": "Budibase CLI, for developers, self hosting and migrations.",
"main": "src/index.js",
"bin": {
@@ -26,9 +26,9 @@
"outputPath": "build"
},
"dependencies": {
- "@budibase/backend-core": "2.1.43-alpha.10",
- "@budibase/string-templates": "2.1.43-alpha.10",
- "@budibase/types": "2.1.43-alpha.10",
+ "@budibase/backend-core": "2.1.43-alpha.12",
+ "@budibase/string-templates": "2.1.43-alpha.12",
+ "@budibase/types": "2.1.43-alpha.12",
"axios": "0.21.2",
"chalk": "4.1.0",
"cli-progress": "3.11.2",
diff --git a/packages/client/package.json b/packages/client/package.json
index b74b5446a1..dad115fb49 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/client",
- "version": "2.1.43-alpha.10",
+ "version": "2.1.43-alpha.12",
"license": "MPL-2.0",
"module": "dist/budibase-client.js",
"main": "dist/budibase-client.js",
@@ -19,9 +19,9 @@
"dev:builder": "rollup -cw"
},
"dependencies": {
- "@budibase/bbui": "2.1.43-alpha.10",
- "@budibase/frontend-core": "2.1.43-alpha.10",
- "@budibase/string-templates": "2.1.43-alpha.10",
+ "@budibase/bbui": "2.1.43-alpha.12",
+ "@budibase/frontend-core": "2.1.43-alpha.12",
+ "@budibase/string-templates": "2.1.43-alpha.12",
"@spectrum-css/button": "^3.0.3",
"@spectrum-css/card": "^3.0.3",
"@spectrum-css/divider": "^1.0.3",
diff --git a/packages/client/src/components/app/SidePanel.svelte b/packages/client/src/components/app/SidePanel.svelte
index 8731c7191e..825b401bb8 100644
--- a/packages/client/src/components/app/SidePanel.svelte
+++ b/packages/client/src/components/app/SidePanel.svelte
@@ -29,6 +29,17 @@
// Derive visibility
$: open = $sidePanelStore.contentId === $component.id
+ // Derive a render key which is only changed whenever this panel is made
+ // visible after being hidden. We need to key the content to avoid showing
+ // stale data when re-revealing a side panel that was closed, but we cannot
+ // hide the content altogether when hidden as this breaks ejection.
+ let renderKey = null
+ $: {
+ if (open) {
+ renderKey = Math.random()
+ }
+ }
+
const showInSidePanel = (el, visible) => {
const update = visible => {
const target = document.getElementById("side-panel-container")
@@ -47,7 +58,10 @@
// Apply initial visibility
update(visible)
- return { update }
+ return {
+ update,
+ destroy: () => update(false),
+ }
}
@@ -57,9 +71,9 @@
class="side-panel"
class:open
>
- {#if $sidePanelStore.open}
+ {#key renderKey}
- {/if}
+ {/key}