From 4a80af1bc66778d18b098550f6ddb27704fd1595 Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Fri, 12 Apr 2024 09:32:35 +0100 Subject: [PATCH] some line refactor --- packages/bbui/src/Tooltip/Context.svelte | 2 - .../controls/FieldContext/lines/Column.svelte | 8 +-- .../lines/JSONPrimitivesOnly.svelte | 12 ++-- .../FieldContext/lines/NotRequired.svelte | 9 +-- .../FieldContext/lines/StringNumber.svelte | 17 ++--- .../FieldContext/lines/Support.svelte | 4 +- .../FieldContext/typography/Comma.svelte | 3 +- .../FieldContext/typography/InfoWord.svelte | 5 +- .../FieldContext/typography/Line.svelte | 12 ++-- .../FieldContext/typography/Period.svelte | 1 + .../FieldContext/typography/Space.svelte | 6 +- .../FieldContext/typography/Text.svelte | 70 ++++++++++++++++++- 12 files changed, 108 insertions(+), 41 deletions(-) diff --git a/packages/bbui/src/Tooltip/Context.svelte b/packages/bbui/src/Tooltip/Context.svelte index 10f050c7b6..d5afad9fa2 100644 --- a/packages/bbui/src/Tooltip/Context.svelte +++ b/packages/bbui/src/Tooltip/Context.svelte @@ -157,8 +157,6 @@ border-radius: 5px; box-sizing: border-box; - opacity: 0; - overflow: hidden; border: 1px solid var(--grey-4); transition: width 300ms ease-in, height 300ms ease-in, top 300ms ease-in, left 300ms ease-in; diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte index e1952fd67d..d28748d8e0 100644 --- a/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte +++ b/packages/builder/src/components/design/settings/controls/FieldContext/lines/Column.svelte @@ -35,16 +35,16 @@ } - + setExplanationSubject(subjects.column)} on:mouseleave={() => setExplanationSubject(subjects.none)} href={tableHref} text={columnName} /> - - is a - + - - - JSON Objects cannot be used, but scalar child values can be if their types are supported - + + + + diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/typography/InfoWord.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/typography/InfoWord.svelte index 11538c3906..7ace69daf3 100644 --- a/packages/builder/src/components/design/settings/controls/FieldContext/typography/InfoWord.svelte +++ b/packages/builder/src/components/design/settings/controls/FieldContext/typography/InfoWord.svelte @@ -51,16 +51,17 @@ diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Period.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Period.svelte index c5ab3b498b..8faf71d3ba 100644 --- a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Period.svelte +++ b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Period.svelte @@ -7,5 +7,6 @@ display: inline block; line-height: 26px; margin-left: 2px; + flex-shrink: 0; } diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Space.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Space.svelte index e6a1000762..1003a8c577 100644 --- a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Space.svelte +++ b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Space.svelte @@ -1,8 +1,10 @@ - +{" "} diff --git a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Text.svelte b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Text.svelte index 0b688e7e06..a9b137e025 100644 --- a/packages/builder/src/components/design/settings/controls/FieldContext/typography/Text.svelte +++ b/packages/builder/src/components/design/settings/controls/FieldContext/typography/Text.svelte @@ -1,8 +1,76 @@ - + + +{#if words.length} + {#each words as word} + {#if word === " "} + + {:else if word === ","} + + {:else if word === "."} + + {:else} + + {word} + + {/if} + {/each} +{:else} + +{/if}