refactor: optimize tab cursor position calculation

This commit is contained in:
Cotes Chung 2023-01-30 03:08:35 +08:00
parent dd339aea2b
commit 511df11546
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ $sidebar-display: "sidebar-display";
@for $i from 1 through $tab-count {
$offset: $tab-count - $i;
$top: calc(-#{$offset} * #{$tab-height} + (#{$tab-height} - #{$tab-cursor-height}) / 2);
$top: (-$offset * $tab-height) + (($tab-height - $tab-cursor-height) * 0.5);
@if $i < $tab-count {
> li.active:nth-child(#{$i}),