Skip to content

Commit

Permalink
fix: for inconsistent switch width changes (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
1587315093 committed Nov 1, 2023
1 parent f2e166d commit 671ea15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/switch/switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
display: flex;
justify-content: center;
align-items: center;
margin: 0 8px 0 calc(var(--height) - var(--border-width) + 4px);
margin: 0 8px 0 calc(var(--height) - var(--border-width) + 5px);
height: 100%;
color: var(--adm-color-weak);
transition: margin 200ms;
Expand All @@ -92,7 +92,7 @@
}

.@{class-prefix-switch}-inner {
margin: 0 calc(var(--height) - var(--border-width) + 5px) 0 10px;
margin: 0 calc(var(--height) - var(--border-width) + 5px) 0 8px;
color: var(--adm-color-text-light-solid);
}
}
Expand Down

0 comments on commit 671ea15

Please sign in to comment.