From ed7b5b779ecfef0760a2d6f415ad0bd57393d122 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Sun, 12 Jul 2020 19:19:12 +0100 Subject: [PATCH] Various minor UI updates including the settings modal Settings modal update includies, improved spacing, element sizing. Working with this part of the platform felt a little brittle. It might be the fact it's a modal. The frontend component section had a different layout that the block section in the backend and workflow section - updated to follow suit. Dataform button updated and improved. Settings button color updated Additonal data blocks added which are pretty popular (not essential but took me mew a seconds to add and will save me a decent bit in the future) --- packages/builder/src/budibase.css | 2 +- .../src/components/common/Block.svelte | 5 ++- .../modals/CreateEditRecord.svelte | 11 +++--- .../nav/ModelNavigator/BlockNavigator.svelte | 23 ++++++++--- .../nav/ModelNavigator/ListItem.svelte | 4 +- .../src/components/settings/Link.svelte | 2 +- .../src/components/settings/Modal.svelte | 4 +- .../components/settings/tabs/APIKeys.svelte | 5 +-- .../settings/tabs/DangerZone.svelte | 18 +++++---- .../components/settings/tabs/General.svelte | 38 +++++++------------ .../src/components/settings/tabs/Users.svelte | 31 ++++++++------- .../src/components/start/AppCard.svelte | 12 ++++-- .../AppPreview/CurrentItemPreview.svelte | 2 +- .../AppPreview/iframeTemplate.js | 11 ++++-- .../Colorpicker/components/Input.svelte | 3 +- .../ComponentSelectionList.svelte | 7 ++-- .../ComponentsHierarchyChildren.svelte | 2 +- .../userInterface/ItemTab/Item.svelte | 11 ++---- .../userInterface/ItemTab/Tab.svelte | 19 ++++++---- .../userInterface/temporaryPanelStructure.js | 2 +- .../WorkflowList/WorkflowList.svelte | 2 +- .../builder/src/constants/backend/index.js | 32 +++++++++++++++- .../standard-components/public/global.css | 7 ++++ .../standard-components/src/DataForm.svelte | 12 +++--- .../src/DataFormWide.svelte | 7 ++-- .../standard-components/src/Heading.svelte | 6 ++- .../standard-components/src/Navigation.svelte | 7 ++-- 27 files changed, 172 insertions(+), 113 deletions(-) diff --git a/packages/builder/src/budibase.css b/packages/builder/src/budibase.css index 13a02aabcd..8de82530b1 100644 --- a/packages/builder/src/budibase.css +++ b/packages/builder/src/budibase.css @@ -63,7 +63,7 @@ .budibase__nav-item.selected { color: var(--ink); - background: var(--blue-light); + background: var(--grey-2); } .budibase__nav-item:hover { diff --git a/packages/builder/src/components/common/Block.svelte b/packages/builder/src/components/common/Block.svelte index fc1958a211..eccf798742 100644 --- a/packages/builder/src/components/common/Block.svelte +++ b/packages/builder/src/components/common/Block.svelte @@ -28,12 +28,15 @@ } i { - font-size: 30px; + font-size: 24px; + color: var(--grey-7); } span { font-size: 14px; text-align: center; + margin-top: 8px; + line-height: 1.25; } div:hover { diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte index 3db48eab34..f17730893c 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditRecord.svelte @@ -3,7 +3,7 @@ import { store, backendUiStore } from "builderStore" import { notifier } from "builderStore/store/notifications" import { compose, map, get, flatten } from "lodash/fp" - import { Button } from "@budibase/bbui" + import { Input, TextArea, Button } from "@budibase/bbui" import LinkedRecordSelector from "components/common/LinkedRecordSelector.svelte" import Select from "components/common/Select.svelte" import RecordFieldControl from "./RecordFieldControl.svelte" @@ -70,7 +70,7 @@
-

Create / Edit Record

+

Create / Edit Record

@@ -117,15 +117,16 @@ align-items: center; justify-content: center; background: var(--blue-light); - color: var(--ink); + color: var(--grey-7); font-size: 20px; - border-radius: 3px; + border-radius: 5px; } h4 { display: inline-block; font-size: 24px; - font-weight: bold; + font-weight: 600; + font-family: sans-serif; color: var(--ink); margin: 0; } diff --git a/packages/builder/src/components/nav/ModelNavigator/BlockNavigator.svelte b/packages/builder/src/components/nav/ModelNavigator/BlockNavigator.svelte index 275a8291de..a1eb2b7d3b 100644 --- a/packages/builder/src/components/nav/ModelNavigator/BlockNavigator.svelte +++ b/packages/builder/src/components/nav/ModelNavigator/BlockNavigator.svelte @@ -52,17 +52,28 @@ } span { + cursor: pointer; + display: grid; + justify-content: center; + align-content: center; + padding: 0px 16px; + height: 36px; text-align: center; - padding: 10px; - font-weight: 500; - border-radius: 3px; - color: var(--ink-lighter); + background: #ffffff; + color: var(--grey-7); + border-radius: 5px; + font-family: inter; font-size: 14px; - background: var(--grey-1); + font-weight: 400; + transition: all 0.3s; + text-rendering: optimizeLegibility; + border: none !important; + transition: 0.2s; + outline: none; } span:hover { - background: var(--blue-light); + color: var(--ink); cursor: pointer; } diff --git a/packages/builder/src/components/nav/ModelNavigator/ListItem.svelte b/packages/builder/src/components/nav/ModelNavigator/ListItem.svelte index f449c4c389..83d83487a3 100644 --- a/packages/builder/src/components/nav/ModelNavigator/ListItem.svelte +++ b/packages/builder/src/components/nav/ModelNavigator/ListItem.svelte @@ -31,11 +31,11 @@ } .selected { - background-color: var(--blue-light); + background-color: var(--grey-2); } div:hover { - background-color: var(--blue-light); + background-color: var(--grey-1); cursor: pointer; } diff --git a/packages/builder/src/components/settings/Link.svelte b/packages/builder/src/components/settings/Link.svelte index fe2ec26752..7f3c202629 100644 --- a/packages/builder/src/components/settings/Link.svelte +++ b/packages/builder/src/components/settings/Link.svelte @@ -34,7 +34,7 @@ } .topnavitemright { cursor: pointer; - color: var(--ink-light); + color: var(--grey-7); margin: 0px 20px 0px 0px; padding-top: 4px; font-weight: 500; diff --git a/packages/builder/src/components/settings/Modal.svelte b/packages/builder/src/components/settings/Modal.svelte index dc6809f488..56e44c1776 100644 --- a/packages/builder/src/components/settings/Modal.svelte +++ b/packages/builder/src/components/settings/Modal.svelte @@ -55,6 +55,7 @@ diff --git a/packages/builder/src/components/settings/tabs/DangerZone.svelte b/packages/builder/src/components/settings/tabs/DangerZone.svelte index 352b33c426..e87c5c4cd9 100644 --- a/packages/builder/src/components/settings/tabs/DangerZone.svelte +++ b/packages/builder/src/components/settings/tabs/DangerZone.svelte @@ -1,7 +1,6 @@ -Danger Zone
+

+ Type DELETE into the textbox, then click the following button to delete your + web app: +

(value = e.target.value)} on:input={e => (value = e.target.value)} thin disabled={loading} - placeholder="" - label="Type DELETE into the textbox, then click the following button to - delete your web app:" /> + placeholder="" />