commit: fc652523aa39fec0e3e00645d7eec83bfd36af17
parent ae55374841bf0787cc73ff3966d994d79c1ae671
Author: Henry Jameson <me@hjkos.com>
Date: Thu, 14 Nov 2024 17:26:33 +0200
fix broken spread text input and roundness present checkbox
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js
@@ -380,7 +380,7 @@ export default {
exports.editedOpacity = getEditedElement(null, 'opacity')
exports.isOpacityPresent = isElementPresent(null, 'opacity', 1)
exports.editedRoundness = getEditedElement(null, 'roundness')
- exports.isRoundnessPresent = isElementPresent(null, 'roundness', 0)
+ exports.isRoundnessPresent = isElementPresent(null, 'roundness', '0')
exports.editedTextColor = getEditedElement('Text', 'textColor')
exports.isTextColorPresent = isElementPresent('Text', 'textColor', '#000000')
exports.editedTextAuto = getEditedElement('Text', 'textAuto')
diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue
@@ -145,8 +145,8 @@
<input
id="spread"
:value="selected?.spread"
- :disabled="disabled || !present || (separateInset && !selected?.inset)"
:class="{ disabled: disabled || !present || (separateInset && !selected?.inset) }"
+ :disabled="disabled || !present || (separateInset && !selected?.inset)"
name="spread"
class="input input-range"
type="range"
@@ -158,7 +158,7 @@
:value="selected?.spread"
class="input input-number -small"
:class="{ disabled: disabled || !present || (separateInset && !selected?.inset) }"
- :disabled="{ disabled: disabled || !present || (separateInset && !selected?.inset) }"
+ :disabled="disabled || !present || (separateInset && !selected?.inset)"
type="number"
@input="e => updateProperty('spread', e.target.value)"
>