From 9e26508bc2ca7055d467fba9db4b46a138299131 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Mon, 1 Jun 2020 21:18:25 +0100 Subject: [PATCH 1/3] Padding and margin input fields fix --- .../builder/src/components/common/Input.svelte | 1 - .../ComponentsHierarchyChildren.svelte | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/common/Input.svelte b/packages/builder/src/components/common/Input.svelte index a136b4e2f3..b80e24e000 100644 --- a/packages/builder/src/components/common/Input.svelte +++ b/packages/builder/src/components/common/Input.svelte @@ -16,7 +16,6 @@ line-height: 1.3; padding: 12px; width: 164px; - float: right; max-width: 100%; box-sizing: border-box; margin: 0; diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte index 344e02d127..dfa6f67faa 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte @@ -40,7 +40,7 @@ class="budibase__nav-item item" class:selected={currentComponent === component} style="padding-left: {level * 20 + 53}px"> -
{get_capitalised_name(component._component)}
+
@@ -72,8 +72,6 @@ border-radius: 3px; height: 35px; align-items: center; - font-weight: 400; - font-size: 13px; } .actions { @@ -95,4 +93,16 @@ .item:hover .actions { display: block; } + + .nav-item { + display: flex; + align-items: center; + font-size: 14px; + color: var(--ink); + } + + .icon { + color: var(--ink-light); + margin-right: 8px; + } From 6cd94db36791819d5fbad3b29bef506dc533334e Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Mon, 1 Jun 2020 21:18:43 +0100 Subject: [PATCH 2/3] Padding and margin fix --- packages/builder/src/builderStore/generate_css.js | 4 +++- .../src/components/common/Inputs/InputGroup.svelte | 11 ++++------- .../components/userInterface/propertyCategories.js | 14 +++++++++----- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/packages/builder/src/builderStore/generate_css.js b/packages/builder/src/builderStore/generate_css.js index 5826d4f824..d2d6f40bdf 100644 --- a/packages/builder/src/builderStore/generate_css.js +++ b/packages/builder/src/builderStore/generate_css.js @@ -1,3 +1,5 @@ +import {toNumber} from "lodash/fp" + export const generate_screen_css = component_arr => { let styles = "" for (const { _styles, _id, _children, _component } of component_arr) { @@ -37,7 +39,7 @@ export const generate_css = style => { export const generate_array_styles = item => { let safeItem = item === "" ? 0 : item let hasPx = new RegExp("px$") - if (!hasPx.test(safeItem)) { + if (!hasPx.test(safeItem) && !isNaN(toNumber(safeItem))) { return `${safeItem}px` } else { return safeItem diff --git a/packages/builder/src/components/common/Inputs/InputGroup.svelte b/packages/builder/src/components/common/Inputs/InputGroup.svelte index ffe6880f51..f5497b2a26 100644 --- a/packages/builder/src/components/common/Inputs/InputGroup.svelte +++ b/packages/builder/src/components/common/Inputs/InputGroup.svelte @@ -4,7 +4,7 @@ export let meta = [] export let label = "" export let value = [0, 0, 0, 0] - export let type = "number" + export let type = "text" export let onChange = () => {} function handleChange(val, idx) { @@ -28,8 +28,6 @@