diff --git a/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte b/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte index d0f6f6d0c0..ba707c6aa0 100644 --- a/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte +++ b/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte @@ -1,6 +1,8 @@ -
+
switchTab(e.detail)} options={{ right: 'As JSON' }} /> -
- - Arguments can be edited either using the wizard, or by editing their JSON Schema, - see docs - -
-
- {#each entries as { type, name, icon, ids }} - {#if ids.length > 0} -
- - {#if $isOpenStoreCss[type]} -
- {#each ids as id} -
-
{id}
- {#if $app?.css?.[type]?.[id]} - style - (isCustom[type] = true)} - bind:value={$app.css[type][id].style} - /> - class - (isCustom[type] = true)} - bind:value={$app.css[type][id].class} - /> - {/if} -
- {/each} -
- {/if} -
- {/if} - {/each} -
+ > +

{name} +

+ + + {#if $isOpenStoreCss[type]} +
+ {#each ids as id} +
+
{id}
+ {#if $app?.css?.[type]?.[id]} + style + (isCustom[type] = true)} + bind:value={$app.css[type][id].style} + /> + class + (isCustom[type] = true)} + bind:value={$app.css[type][id].class} + /> + {/if} +
+ {/each} +
+ {/if} +
+ {/if} + {/each} + +{:else} + {#if !emptyString(jsonError)}{jsonError}{:else}
{/if} +
+ +
+{/if}