Skip to content

Commit 511df11

Browse files
committed
refactor: optimize tab cursor position calculation
1 parent dd339ae commit 511df11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_sass/addon/commons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ $sidebar-display: "sidebar-display";
841841

842842
@for $i from 1 through $tab-count {
843843
$offset: $tab-count - $i;
844-
$top: calc(-#{$offset} * #{$tab-height} + (#{$tab-height} - #{$tab-cursor-height}) / 2);
844+
$top: (-$offset * $tab-height) + (($tab-height - $tab-cursor-height) * 0.5);
845845

846846
@if $i < $tab-count {
847847
> li.active:nth-child(#{$i}),

0 commit comments

Comments
 (0)