Skip to content

Commit

Permalink
fix(route): normal page max-height fix #14592
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and Chen-jj committed Sep 25, 2023
1 parent 867b374 commit 6167780
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/taro-router/src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function loadAnimateStyle (ms = 300) {
/**
* 插入路由相关样式
*/
export function loadRouterStyle (usingWindowScroll) {
export function loadRouterStyle (usingWindowScroll: boolean) {
const css = `
.taro_router {
position: relative;
Expand All @@ -53,8 +53,11 @@ export function loadRouterStyle (usingWindowScroll) {
`}
}
.taro-tabbar__container .taro-tabbar__panel {
.taro-tabbar__container > .taro-tabbar__panel {
overflow: hidden;
}
.taro-tabbar__container > .taro-tabbar__panel > .taro_page.taro_tabbar_page {
max-height: calc(100vh - var(--taro-tabbar-height) - constant(safe-area-inset-bottom));
max-height: calc(100vh - var(--taro-tabbar-height) - env(safe-area-inset-bottom));
}
Expand Down

0 comments on commit 6167780

Please sign in to comment.