From f972e4bb06e53ea6565c1147fa98fe294a159703 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 20 Mar 2023 10:58:20 +0100 Subject: [PATCH] improve drag for apps --- .../apps/components/buttons/AppForm.svelte | 2 +- .../components/buttons/AppFormButton.svelte | 2 +- .../apps/components/inputs/AppCheckbox.svelte | 2 +- .../apps/editor/AppEditorHeader.svelte | 2 +- .../components/apps/editor/GridEditor.svelte | 2 +- .../componentsPanel/ComponentList.svelte | 16 +++++++++ .../apps/svelte-grid/MoveResize.svelte | 34 +++++++++---------- 7 files changed, 37 insertions(+), 23 deletions(-) diff --git a/frontend/src/lib/components/apps/components/buttons/AppForm.svelte b/frontend/src/lib/components/apps/components/buttons/AppForm.svelte index ba9463e62a..f5acf6eaa3 100644 --- a/frontend/src/lib/components/apps/components/buttons/AppForm.svelte +++ b/frontend/src/lib/components/apps/components/buttons/AppForm.svelte @@ -30,7 +30,7 @@ loading: Output } - let labelValue: string = 'Default label' + let labelValue: string = '' let color: ButtonType.Color let size: ButtonType.Size let runnableComponent: RunnableComponent diff --git a/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte b/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte index a6b0494081..aea744b1ec 100644 --- a/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte +++ b/frontend/src/lib/components/apps/components/buttons/AppFormButton.svelte @@ -33,7 +33,7 @@ loading: Output } - let labelValue: string = 'Default label' + let labelValue: string = '' let color: ButtonType.Color let size: ButtonType.Size let runnableComponent: RunnableComponent diff --git a/frontend/src/lib/components/apps/components/inputs/AppCheckbox.svelte b/frontend/src/lib/components/apps/components/inputs/AppCheckbox.svelte index 419443b712..a68b88193a 100644 --- a/frontend/src/lib/components/apps/components/inputs/AppCheckbox.svelte +++ b/frontend/src/lib/components/apps/components/inputs/AppCheckbox.svelte @@ -19,7 +19,7 @@ const { app, worldStore } = getContext('AppViewerContext') let defaultValue: boolean | undefined = undefined - let labelValue: string = 'Default label' + let labelValue: string = '' // As the checkbox is a special case and has no input // we need to manually set the output diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte index 22a751de15..56b4826f5b 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte @@ -541,7 +541,7 @@