From d2e516822277948005fb5fd6596c7b9b9119ec7a Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Mon, 26 Sep 2022 19:23:39 +0200 Subject: [PATCH] fix(frontend): Fix buttons spacings (#627) --- frontend/src/lib/components/EditorBar.svelte | 33 ++++++++++++++++--- .../src/lib/components/FlowBuilder.svelte | 19 ++--------- .../src/lib/components/ModulePreview.svelte | 2 +- .../components/common/button/Button.svelte | 27 ++++++++++----- .../flows/header/FlowImportExportMenu.svelte | 2 +- .../src/routes/flows/get/[...path].svelte | 10 +++--- .../src/routes/scripts/get/[...hash].svelte | 10 +++--- 7 files changed, 62 insertions(+), 41 deletions(-) diff --git a/frontend/src/lib/components/EditorBar.svelte b/frontend/src/lib/components/EditorBar.svelte index 5a72a355c2..a7cabfeadc 100644 --- a/frontend/src/lib/components/EditorBar.svelte +++ b/frontend/src/lib/components/EditorBar.svelte @@ -179,33 +179,58 @@ btnClasses="mr-1" on:click={variablePicker.openModal} size="xs" + spacingSize="md" startIcon={{ icon: faFile }} > Insert variable
-
-
-
- - + diff --git a/frontend/src/routes/flows/get/[...path].svelte b/frontend/src/routes/flows/get/[...path].svelte index 2a5326fb44..0c1b2463fd 100644 --- a/frontend/src/routes/flows/get/[...path].svelte +++ b/frontend/src/routes/flows/get/[...path].svelte @@ -99,7 +99,7 @@ href="/flows/run/{path}" variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faPlay }} > Run @@ -108,7 +108,7 @@ href="/flows/edit/{path}" variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faEdit }} disabled={!can_write} > @@ -118,7 +118,7 @@ href="/flows/add?template={flow.path}" variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faCodeFork }} > Use as template/Fork @@ -129,7 +129,7 @@ href="/runs/{flow.path}" variant="border" color="blue" - size="md" + size="sm" startIcon={{ icon: faList }} > View runs @@ -139,7 +139,7 @@ href={flowToHubUrl(flow).toString()} variant="border" color="blue" - size="md" + size="sm" startIcon={{ icon: faGlobe }} > Publish to Hub diff --git a/frontend/src/routes/scripts/get/[...hash].svelte b/frontend/src/routes/scripts/get/[...hash].svelte index a7628c6acf..e0321639f9 100644 --- a/frontend/src/routes/scripts/get/[...hash].svelte +++ b/frontend/src/routes/scripts/get/[...hash].svelte @@ -137,7 +137,7 @@ href={`/scripts/run/${script.hash}`} variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faPlay }} > Run @@ -146,7 +146,7 @@ href={`/scripts/edit/${script.hash}?step=2`} variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faEdit }} disabled={!can_write} > @@ -157,7 +157,7 @@ href={`/scripts/add?template=${script.path}`} variant="contained" color="blue" - size="md" + size="sm" startIcon={{ icon: faCodeFork }} > Use as template/Fork @@ -169,7 +169,7 @@ href={`/runs/${script.path}`} variant="border" color="blue" - size="md" + size="sm" startIcon={{ icon: faList }} > View runs @@ -184,7 +184,7 @@ ).toString()} variant="border" color="blue" - size="md" + size="sm" startIcon={{ icon: faGlobe }} > Publish to Hub