Skip to content

Commit 74d7713

Browse files
robinclaude
andcommitted
[run] issue-1844: fix additional WXSS calc() syntax in toast.scss
Replace `$var - calc(...)` with direct SCSS arithmetic to avoid enterprise WeChat WXSS compilation error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 37a0c4d commit 74d7713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/taro-ui/src/style/components/toast.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $at-toast-bg-color: rgba($color: $color-black-0, $alpha: 0.8);
8686
&.at-toast__body--success,
8787
&.at-toast__body--error,
8888
&.at-toast__body--loading {
89-
padding-bottom: $spacing-v-lg - calc(($at-toast-font-size * $line-height-zh - $at-toast-font-size) / 2);
89+
padding-bottom: $spacing-v-lg - ($at-toast-font-size * $line-height-zh - $at-toast-font-size) / 2;
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)