diff --git a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass index 0266b73c..8a64f5c7 100644 --- a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass +++ b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass @@ -14,6 +14,9 @@ transform: translate(0, -50%) width: 34px + &.compact + left: -3px + .switch-label position: relative display: inline-block diff --git a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue index d1eac82c..58456cec 100644 --- a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue +++ b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue @@ -6,6 +6,7 @@ type="checkbox" name="set-name" class="switch-input" + :class="{compact}" :checked="currentValue" @change="$emit('change', currentValue)" >