From 91f562ee8c2376693452e56654e327f9b1738588 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Fri, 26 Jun 2020 14:32:45 +0100 Subject: [PATCH 1/2] UI Update Button color changed Background color in the settings panel removed Workflow items font color fixed Spacing improved --- .../workflow/SetupPanel/SetupPanel.svelte | 91 +++++-------------- .../SetupPanel/WorkflowBlockSetup.svelte | 42 +++++---- .../WorkflowBuilder/WorkflowBuilder.svelte | 2 +- .../WorkflowBuilder/flowchart/FlowItem.svelte | 4 + .../WorkflowList/WorkflowList.svelte | 10 +- 5 files changed, 58 insertions(+), 91 deletions(-) diff --git a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte index fb18a20e63..f68e74311d 100644 --- a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte @@ -5,6 +5,7 @@ import { notifier } from "builderStore/store/notifications" import WorkflowBlockSetup from "./WorkflowBlockSetup.svelte" import DeleteWorkflowModal from "./DeleteWorkflowModal.svelte" + import { Button } from "@budibase/bbui" const { open, close } = getContext("simple-modal") @@ -90,26 +91,26 @@ {testResult} {/if} - + {/if} {#if selectedTab === 'SETUP'} {#if workflowBlock}
- - +
{:else if $workflowStore.currentWorkflow}
@@ -141,15 +142,14 @@
- - + +
{/if} @@ -175,11 +175,12 @@ } header { - font-size: 20px; + font-size: 18px; font-weight: 600; + font-family: inter; display: flex; align-items: center; - margin-bottom: 18px; + margin-bottom: 20px; color: var(--ink); } @@ -190,13 +191,12 @@ .block-label { font-weight: 500; font-size: 14px; - color: var(--ink); - margin: 0px 0px 16px 0px; + color: var(--grey-7); + margin-bottom: 20px; } .config-item { - margin: 0px 0px 4px 0px; - padding: 12px 0px; + margin-bottom: 20px; } .budibase_input { @@ -214,6 +214,7 @@ header > span { color: var(--grey-5); margin-right: 20px; + cursor: pointer; } .form { @@ -228,52 +229,10 @@ .buttons { position: absolute; - bottom: 10px; - } - - .delete-workflow-button { - cursor: pointer; - border: 1px solid var(--red); - border-radius: 3px; - width: 260px; - padding: 8px 16px; - display: flex; - justify-content: center; - align-items: center; - background: var(--white); - color: var(--red); - font-size: 14px; - font-weight: 500; - transition: all 2ms; - align-self: flex-end; - margin-bottom: 10px; - } - - .delete-workflow-button:hover { - background: var(--red); - border: 1px solid var(--red); - color: var(--white); - } - - .workflow-button { - cursor: pointer; - border: 1px solid var(--grey-4); - border-radius: 3px; + bottom: 20px; + display: grid; width: 100%; - padding: 8px 16px; - display: flex; - justify-content: center; - align-items: center; - background: white; - color: var(--ink); - font-size: 14px; - font-weight: 500; - transition: all 2ms; - margin-bottom: 10px; - } - - .workflow-button:hover { - background: var(--grey-1); + gap: 12px; } .access-level { @@ -301,7 +260,7 @@ } .passed { - background: #84c991; + background: var(--green); } .failed { diff --git a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte index 20ab71c23a..b950d1dacb 100644 --- a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte @@ -13,11 +13,10 @@ : [] - + {#each workflowParams as [parameter, type]}
- -
+ {#if Array.isArray(type)} @@ -38,17 +37,17 @@ {:else if type === 'password'} {:else if type === 'number'} {:else if type === 'longText'}