From 88d67a5726636921450cdb6e89c5494f80293a9d Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 31 Jan 2020 23:29:49 +0000 Subject: [PATCH] few wee bug fixes --- packages/builder/src/userInterface/CodeEditor.svelte | 2 +- .../builder/src/userInterface/ComponentsPaneSwitcher.svelte | 1 + packages/builder/src/userInterface/PropControl.svelte | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/userInterface/CodeEditor.svelte b/packages/builder/src/userInterface/CodeEditor.svelte index dbe87d8eff..68719a52a3 100644 --- a/packages/builder/src/userInterface/CodeEditor.svelte +++ b/packages/builder/src/userInterface/CodeEditor.svelte @@ -33,7 +33,7 @@ $: { cmInstance.on("change", () => currentCode = cmInstance.getValue()); } cmInstance.focus(); - cmInstance.setValue(code); + cmInstance.setValue(code || ""); } } diff --git a/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte b/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte index 7877bee626..a9a373eb06 100644 --- a/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte +++ b/packages/builder/src/userInterface/ComponentsPaneSwitcher.svelte @@ -67,6 +67,7 @@ font-size: 0.85rem; text-transform: uppercase; color: #999; + background-color: rgba(0,0,0,0); } .switcher > .selected { diff --git a/packages/builder/src/userInterface/PropControl.svelte b/packages/builder/src/userInterface/PropControl.svelte index 779ebbecfb..013ab55554 100644 --- a/packages/builder/src/userInterface/PropControl.svelte +++ b/packages/builder/src/userInterface/PropControl.svelte @@ -41,6 +41,7 @@ } h5 { + word-wrap: break-word; font-size: 12px; font-weight: 700; color: #163057;