Skip to content

Commit 5a4769e

Browse files
author
Lionel Bijaoui
committed
Small changes to fieldSwitch to allow easier customization of the width of the switch.
1 parent e864d10 commit 5a4769e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fields/fieldSwitch.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ $field-switch-width: 120px;
128128
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
129129
}
130130
input:checked ~ .handle {
131-
left: $width - 26px;
131+
left: $field-switch-width - 32px;
132+
left: calc(100% - 32px);
132133
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
133134
}
134135

0 commit comments

Comments
 (0)