From c9fd7d5d6246073062c79301a8b32e702a4248b4 Mon Sep 17 00:00:00 2001 From: nwrenger Date: Wed, 3 Jan 2024 11:24:31 +0100 Subject: [PATCH] :sparkles: Adjusted sizes for mobile --- src/routes/builder/Grid.svelte | 83 +++++++++++++++------------------- src/routes/builder/Menu.svelte | 11 +++-- 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/src/routes/builder/Grid.svelte b/src/routes/builder/Grid.svelte index 0789bb2..0f8664b 100644 --- a/src/routes/builder/Grid.svelte +++ b/src/routes/builder/Grid.svelte @@ -84,25 +84,19 @@ > {#if item.type == GuiType.Header} {#if typeof item.data.textValue == 'object'} - {#if item.data.textValue?.text} -
-

+
+

+ {#if item.data.textValue?.text} {item.data.textValue.text} -

-
- {:else} -
-

Unset

-
- {/if} + {:else} + Unset + {/if} +

+
{:else}

TypeError: Mismatched Type. Please delete this Element and put in a new one! @@ -110,25 +104,19 @@ {/if} {:else if item.type == GuiType.BodyText} {#if typeof item.data.textValue == 'object'} - {#if item.data.textValue?.text} -

-

+

+

+ {#if item.data.textValue?.text} {item.data.textValue.text} -

-
- {:else} -
-

Unset

-
- {/if} + {:else} + Unset + {/if} +

+
{:else}

TypeError: Mismatched Type. Please delete this Element and put in a new one! @@ -140,19 +128,19 @@ {#each item.data.actions as action} {#if action} {action.textValue} {#if action.event} {action.event.type} {/if} {:else} Unset {/if} @@ -161,23 +149,26 @@ {/if} {:else if item.type == GuiType.Alert} {#if item.data.textValue} -

{item.data.textValue}

+

{item.data.textValue}

{:else} -

Unset

+

Unset

{/if}
{#if item.data.actions && item.data.actions[0]} - + {item.data.actions[0].textValue} {#if item.data.actions[0].event} - {item.data.actions[0].event.type} {/if} {:else} Unset {/if} @@ -190,13 +181,13 @@ {/if} {item.name} {#if del}