Skip to content

Commit

Permalink
fix: checkbox and switch margin
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 17, 2023
1 parent b5349a5 commit 288f1ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/checkbox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
flex: none;
width: var(--r-checkbox-control-size);
height: var(--r-checkbox-control-size);
margin-inline-end: calc(var(--r-checkbox-control-size) / 4);
&:not(:last-child) {
margin-inline-end: calc(var(--r-checkbox-control-size) / 4);
}
.r-checkbox__input:disabled + & {
opacity: 0.8;
}
Expand Down
4 changes: 3 additions & 1 deletion src/switch/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) {
flex: none;
width: calc(var(--r-switch-control-size) * 2);
height: var(--r-switch-control-size);
margin-inline-end: calc(var(--r-switch-control-size) / 4);
&:not(:last-child) {
margin-inline-end: calc(var(--r-switch-control-size) / 4);
}
.r-switch__input:disabled + & {
opacity: 0.8;
}
Expand Down

0 comments on commit 288f1ad

Please sign in to comment.