Skip to content
Snippets Groups Projects
Commit 22cc9670 authored by HJ's avatar HJ :fire:
Browse files

no preview support for shadow control (for themes 3 editor)

parent 9370ee8c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -68,6 +68,14 @@
}
}
&.-no-preview {
.shadow-tweak {
order: 0;
flex: 2 0 20em;
max-width: 100%;
}
}
.inset-alert {
padding: 0.25em 0.5em;
}
......
<template>
<div
class="label shadow-control"
:class="{ disabled: !present }"
:class="{ disabled: !present, '-no-preview': noPreview }"
>
<ComponentPreview
v-if="!noPreview"
class="shadow-preview"
:shadow-control="true"
:shadow="selected"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment