This commit is contained in:
@@ -504,7 +504,8 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -593,8 +594,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-swiper {
|
.order-swiper {
|
||||||
flex: 1 1 0;
|
/* swiper 在 H5 中无法可靠地从 flex 容器继承剩余高度。 */
|
||||||
height: auto;
|
flex: none;
|
||||||
|
height: calc(100vh - 108rpx);
|
||||||
|
height: calc(100dvh - 108rpx);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -728,6 +728,7 @@
|
|||||||
gap: 18rpx;
|
gap: 18rpx;
|
||||||
padding: 20rpx 24rpx 48rpx;
|
padding: 20rpx 24rpx 48rpx;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
background: #f8f9fb;
|
background: #f8f9fb;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -857,8 +858,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.package-swiper {
|
.package-swiper {
|
||||||
flex: 1;
|
/* swiper 在 H5 中无法可靠地从嵌套 flex 获取自动高度。 */
|
||||||
height: auto;
|
flex: none;
|
||||||
|
height: calc(100vh - 190rpx);
|
||||||
|
height: calc(100dvh - 190rpx);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user