color input fixes

This commit is contained in:
Henry Jameson 2024-10-26 19:48:48 +03:00
parent 92f724de36
commit 7419616f61
3 changed files with 9 additions and 3 deletions

View file

@ -5,6 +5,10 @@
flex: 1 1 auto;
}
.opt {
margin-right: 0.5em;
}
&-field.input {
display: inline-flex;
flex: 0 0 0;

View file

@ -103,6 +103,7 @@
>
</div>
<ColorInput
v-if="!noColorControl"
class="input-color-input"
v-model="colorOverride"
fallback="#606060"
@ -128,19 +129,19 @@ export default {
'previewStyle',
'previewCss',
'disabled',
'invalid'
'invalid',
'noColorControl'
],
emits: ['update:shadow'],
data () {
return {
colorOverride: null,
colorOverride: undefined,
lightGrid: false,
zoom: 100
}
},
computed: {
style () {
console.log(this.previewStyle)
const result = [
this.previewStyle,
`zoom: ${this.zoom / 100}`

View file

@ -151,6 +151,7 @@
:preview-css="previewCss"
:disabled="!editedSubShadow && typeof editedShadow !== 'string'"
:shadow="editedSubShadow"
:no-color-control="true"
@update:shadow="({ axis, value }) => updateSubShadow(axis, value)"
/>
</div>