From 22cc96705ab3af42a6373ccab6df473ba1243fed Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 25 Sep 2024 17:56:34 +0300 Subject: [PATCH] no preview support for shadow control (for themes 3 editor) --- src/components/shadow_control/shadow_control.js | 3 +-- src/components/shadow_control/shadow_control.scss | 8 ++++++++ src/components/shadow_control/shadow_control.vue | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/shadow_control/shadow_control.js b/src/components/shadow_control/shadow_control.js index c9a04e4d..9b946e90 100644 --- a/src/components/shadow_control/shadow_control.js +++ b/src/components/shadow_control/shadow_control.js @@ -34,12 +34,11 @@ const toModel = (object = {}) => ({ export default { props: [ - 'modelValue', 'fallback', 'separateInset' + 'modelValue', 'fallback', 'separateInset', 'noPreview' ], emits: ['update:modelValue'], data () { return { - lightGrid: false, selectedId: 0, // TODO there are some bugs regarding display of array (it's not getting updated when deleting for some reason) cValue: (this.modelValue ?? this.fallback ?? []).map(toModel) diff --git a/src/components/shadow_control/shadow_control.scss b/src/components/shadow_control/shadow_control.scss index cdaefa88..a374184b 100644 --- a/src/components/shadow_control/shadow_control.scss +++ b/src/components/shadow_control/shadow_control.scss @@ -68,6 +68,14 @@ } } + &.-no-preview { + .shadow-tweak { + order: 0; + flex: 2 0 20em; + max-width: 100%; + } + } + .inset-alert { padding: 0.25em 0.5em; } diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue index 8c37e82d..050cf820 100644 --- a/src/components/shadow_control/shadow_control.vue +++ b/src/components/shadow_control/shadow_control.vue @@ -1,9 +1,10 @@