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 {
display: grid;
grid-template-columns: 4fr 3fr 5fr;
grid-template-columns: 6fr 3fr 4fr;
grid-template-rows: auto auto 1fr;
grid-gap: 0.5em;
grid-template-areas:

View file

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