From 975055b90ff3e7bd0b8202920ca78fb9178663a7 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Tue, 9 Apr 2024 10:21:26 +0200 Subject: [PATCH] fix(frontend): Improve theme editor (#3525) * fix(frontend): Improve theme editor * feat(frontend): improve theme editor --- .../apps/editor/GridEditorMenu.svelte | 12 +- .../editor/componentsPanel/CssEval.svelte | 1 - .../editor/componentsPanel/CssProperty.svelte | 230 +++++++++--------- .../componentsPanel/QuickStyleMenu.svelte | 22 +- .../componentsPanel/quickStyleProperties.ts | 3 +- .../settingsPanel/ComponentPanel.svelte | 4 +- .../editor/settingsPanel/StylePanel.svelte | 79 +++--- .../secondaryMenu/SecondaryMenu.svelte | 7 +- 8 files changed, 189 insertions(+), 169 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/GridEditorMenu.svelte b/frontend/src/lib/components/apps/editor/GridEditorMenu.svelte index b41d5a59ce..a1e76def2b 100644 --- a/frontend/src/lib/components/apps/editor/GridEditorMenu.svelte +++ b/frontend/src/lib/components/apps/editor/GridEditorMenu.svelte @@ -1,13 +1,15 @@ {#key render} -
-
-
-
- {addWhitespaceBeforeCapitals(name)} -
- {#if shouldDisplayLeft} +
+
+ {addWhitespaceBeforeCapitals(name)} +
+
+ {#if shouldDisplayLeft} + - {/if} - {#if shouldDisplayRight} - - {/if} -
- {#if wmClass} - -
- {wmClass} - -
-
+ iconOnly + startIcon={{ icon: MoveLeft }} + on:click={() => dispatch('left')} + /> + {'Copy for this component'} + {/if} + {#if shouldDisplayRight} + +
{#if value} -
+
{#if tooltip}
{tooltip}
{/if} + {#if value.style !== undefined || forceStyle}
-