From a416ecc7893c2aa4ddffec479482b530c29ffa3e Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Tue, 2 Jun 2020 20:56:16 +0100 Subject: [PATCH] formatting --- .../src/components/common/ActionButton.svelte | 4 ++-- .../src/components/common/Input.svelte | 22 +++++++++++++------ .../common/Inputs/InputGroup.svelte | 7 +++--- .../CreateEditModel/CreateEditModel.svelte | 4 +--- .../modals/CreateEditView.svelte | 12 +++++----- .../userInterface/FlatButton.svelte | 19 ++++++++++------ .../userInterface/FlatButtonGroup.svelte | 2 -- .../userInterface/OptionSelect.svelte | 6 ++--- 8 files changed, 43 insertions(+), 33 deletions(-) diff --git a/packages/builder/src/components/common/ActionButton.svelte b/packages/builder/src/components/common/ActionButton.svelte index 96e7c6b6ae..147737b5c6 100644 --- a/packages/builder/src/components/common/ActionButton.svelte +++ b/packages/builder/src/components/common/ActionButton.svelte @@ -30,8 +30,8 @@ .alert { color: white; - background: #E26D69; - border: solid 1px #E26D69; + background: #e26d69; + border: solid 1px #e26d69; } .cancel { diff --git a/packages/builder/src/components/common/Input.svelte b/packages/builder/src/components/common/Input.svelte index 3ac872dc5a..82305be60a 100644 --- a/packages/builder/src/components/common/Input.svelte +++ b/packages/builder/src/components/common/Input.svelte @@ -1,5 +1,5 @@ - handleChange(e.target.value)} /> + handleChange(e.target.value)} /> diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte index ecb35c23ba..6264b74e09 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditModel/CreateEditModel.svelte @@ -88,7 +88,7 @@ {:else} @@ -160,6 +160,4 @@ display: flex; justify-content: flex-end; } - - diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte index 873e34950a..4db445e54f 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte @@ -43,11 +43,11 @@

Create / Edit View

-
- {#if $store.errors && $store.errors.length > 0} - - {/if} -
+ + {#if $store.errors && $store.errors.length > 0} + + {/if} +
@@ -108,7 +108,7 @@ .main { margin: 20px 40px 0px 40px; } - + .code-snippets { margin: 20px 0px 20px 0px; } diff --git a/packages/builder/src/components/userInterface/FlatButton.svelte b/packages/builder/src/components/userInterface/FlatButton.svelte index e9798fc89c..2eff1a6be4 100644 --- a/packages/builder/src/components/userInterface/FlatButton.svelte +++ b/packages/builder/src/components/userInterface/FlatButton.svelte @@ -1,5 +1,5 @@ -
onClick(value || text)}> +
onClick(value || text)}> {#if useIcon} {:else} - {@html text} + + {@html text} + {/if}
- diff --git a/packages/builder/src/components/userInterface/FlatButtonGroup.svelte b/packages/builder/src/components/userInterface/FlatButtonGroup.svelte index ad1107b1f1..c9523f4d5a 100644 --- a/packages/builder/src/components/userInterface/FlatButtonGroup.svelte +++ b/packages/builder/src/components/userInterface/FlatButtonGroup.svelte @@ -28,10 +28,8 @@ onChange(val) } - const checkSelected = val => isMultiSelect ? value.includes(val) : value === val -
diff --git a/packages/builder/src/components/userInterface/OptionSelect.svelte b/packages/builder/src/components/userInterface/OptionSelect.svelte index d226e6129c..8a1e3685f6 100644 --- a/packages/builder/src/components/userInterface/OptionSelect.svelte +++ b/packages/builder/src/components/userInterface/OptionSelect.svelte @@ -1,6 +1,6 @@