small fixes

This commit is contained in:
Henry Jameson 2024-09-29 00:57:33 +03:00
parent 58ac749755
commit 6230edcbec
2 changed files with 6 additions and 4 deletions

View file

@ -88,7 +88,7 @@
.component-editor { .component-editor {
display: grid; display: grid;
grid-template-columns: 4fr 3fr 5fr; grid-template-columns: 6fr 3fr 4fr;
grid-template-rows: auto auto 1fr; grid-template-rows: auto auto 1fr;
grid-gap: 0.5em; grid-gap: 0.5em;
grid-template-areas: grid-template-areas:

View file

@ -121,10 +121,12 @@
<!-- eslint-enable vue/no-v-html vue/no-v-text-v-html-on-component --> <!-- eslint-enable vue/no-v-html vue/no-v-text-v-html-on-component -->
<ComponentPreview <ComponentPreview
class="component-preview" class="component-preview"
showText="componentHas('Text')" :showText="componentHas('Text')"
:shadowControl="isShadowTabOpen && editedShadow" :shadowControl="isShadowTabOpen"
:shadow="editedShadow"
:previewClass="previewClass" :previewClass="previewClass"
:previewStyle="editorHintStyle" :previewStyle="editorHintStyle"
:disabled="!isShadowPresent"
@update:shadow="({ axis, value }) => updateProperty(axis, value)" @update:shadow="({ axis, value }) => updateProperty(axis, value)"
/> />
</div> </div>
@ -229,7 +231,7 @@
</checkbox> </checkbox>
<ShadowControl <ShadowControl
v-model="editedShadow" v-model="editedShadow"
:disabled="isShadowPresent" :disabled="!isShadowPresent"
:no-preview="true" :no-preview="true"
:separate-inset="shadowSelected === 'avatar' || shadowSelected === 'avatarStatus'" :separate-inset="shadowSelected === 'avatar' || shadowSelected === 'avatarStatus'"
/> />