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 8a64f5c7..333f0bb4 100644 --- a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass +++ b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.sass @@ -1,12 +1,16 @@ /* Thanks to Guus Lieben for the Material Design Switch */ .switch-ctn + margin: 20px 16px position: relative + &.compact + margin: 0 + .switch-input appearance: none height: 20px - left: 13px + left: -3px position: absolute top: calc(50% - 3px) -ms-transform: translate(0, (-50%)) @@ -14,9 +18,6 @@ transform: translate(0, -50%) width: 34px - &.compact - left: -3px - .switch-label position: relative display: inline-block @@ -24,12 +25,7 @@ cursor: pointer font-weight: 500 text-align: left - margin: 16px - padding: 16px 0 16px 44px - - &.compact - margin: 0px - padding: 12px 0 12px 44px + padding: 12px 0 12px 44px &:before, &:after content: "" 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 58456cec..56bdb321 100644 --- a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue +++ b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.vue @@ -1,19 +1,20 @@