From 3d7f91a5ecf2407d82d2ae7cebd03c5e571a1939 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?=
<43071496+adam-kov@users.noreply.github.com>
Date: Sat, 22 Apr 2023 09:56:16 +0200
Subject: [PATCH] fix(frontend): App color picker overflow issue (#1449)
---
.../editor/componentsPanel/CssSettings.svelte | 4 +-
.../inputEditor/ColorInput.svelte | 50 ++++++++++++++-----
.../secondaryMenu/SecondaryMenu.svelte | 3 +-
3 files changed, 41 insertions(+), 16 deletions(-)
diff --git a/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte b/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte
index 28af168a97..1d387014c0 100644
--- a/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte
+++ b/frontend/src/lib/components/apps/editor/componentsPanel/CssSettings.svelte
@@ -69,13 +69,13 @@
Global Styling
switchTab(e.detail === 'json')} class="relative">
-
+
UI
-
+
JSON
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/ColorInput.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/ColorInput.svelte
index 7ad1166b2a..9d6ae08d8c 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/ColorInput.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/ColorInput.svelte
@@ -2,26 +2,43 @@
import { createEventDispatcher } from 'svelte'
import ColorPicker, { ChromeVariant } from 'svelte-awesome-color-picker'
import { ClearableInput } from '../../../../common'
+ import { createPopperActions } from 'svelte-popperjs'
+ import { fade } from 'svelte/transition'
export let value: string = '#fff'
const dispatch = createEventDispatcher()
+ const [popperRef, popperContent] = createPopperActions()
let isOpen = false
+ let width: number
$: dispatch('change', value)
+
+ function open() {
+ isOpen = true
+ }
-