diff --git a/src/UI/Studio/Region.svelte b/src/UI/Studio/Region.svelte index d572773f3..7b63ebed5 100644 --- a/src/UI/Studio/Region.svelte +++ b/src/UI/Studio/Region.svelte @@ -6,6 +6,7 @@ import type { ConfigMeta } from "./configMeta" import EditLayerState from "./EditLayerState" import SchemaBasedInput from "./SchemaBasedInput.svelte" + import AccordionSingle from "../Flowbite/AccordionSingle.svelte" export let state: EditLayerState export let configs: ConfigMeta[] @@ -25,15 +26,15 @@ {:else if configs.length === 0} Bug: Region received empty list as configuration at {path.join(".")} {:else if title} -
-

{title}

-
- - {#each configsFiltered as config} - - {/each} -
-
+ +
{title}
+
+ + {#each configsFiltered as config} + + {/each} +
+
{:else}
{#each configsFiltered as config} diff --git a/src/UI/Studio/SchemaBasedArray.svelte b/src/UI/Studio/SchemaBasedArray.svelte index 3957a1c16..c344fa491 100644 --- a/src/UI/Studio/SchemaBasedArray.svelte +++ b/src/UI/Studio/SchemaBasedArray.svelte @@ -9,6 +9,7 @@ import SchemaBasedMultiType from "./SchemaBasedMultiType.svelte" import ShowConversionMessage from "./ShowConversionMessage.svelte" import Markdown from "../Base/Markdown.svelte" + import AccordionSingle from "../Flowbite/AccordionSingle.svelte" export let state: EditLayerState export let schema: ConfigMeta @@ -125,20 +126,24 @@ {/each} {:else} {#each $currentValue as value, i} - {#if !isTagRenderingBlock} -
-

{singular} {i}

- -
- {/if} -
+ + + {#if !isTagRenderingBlock} +
+

{singular} {i}

+ +
+ {/if} +
+
+ {#if isTagRenderingBlock}
+ +
+ + {/each} {/if}
diff --git a/src/UI/StudioGui.ts b/src/UI/StudioGui.ts index 016df2339..e0b5f9f6d 100644 --- a/src/UI/StudioGui.ts +++ b/src/UI/StudioGui.ts @@ -3,7 +3,11 @@ import StudioGUI from "./StudioGUI.svelte" export default class StudioGui { public setup() { - new SvelteUIElement(StudioGUI, {}).SetClass("h-full").AttachTo("main") + new StudioGUI( + { + target: document.getElementById("main") + } + ) } } diff --git a/studio.html b/studio.html index 0dd374be1..c1fe27b64 100644 --- a/studio.html +++ b/studio.html @@ -18,7 +18,7 @@ -
Loading studio...
+