Skip to content

Commit

Permalink
fix(router): 修复 CSS 单行注释语法问题
Browse files Browse the repository at this point in the history
  • Loading branch information
anyesu authored and ZakaryCode committed May 20, 2024
1 parent 1653ac1 commit 891c23c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/taro-router/src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
export function loadAnimateStyle (ms = 300) {
const css = `
body {
overflow: hidden; // 防止 iOS 页面滚动
/* 防止 iOS 页面滚动 */
overflow: hidden;

Check warning on line 8 in packages/taro-router/src/style.ts

View check run for this annotation

Codecov / codecov/patch

packages/taro-router/src/style.ts#L8

Added line #L8 was not covered by tests
}
.taro_router > .taro_page {
position: absolute;
Expand Down Expand Up @@ -135,7 +136,7 @@ export function loadNavigationBarStyle () {
to {
transform: rotate(360deg);
}
}
}
.taro-navigation-bar-no-icon > .taro-navigation-bar-home {
display: none;
Expand Down

0 comments on commit 891c23c

Please sign in to comment.