修复(斗鱼领取): 提交按钮适配苹果浏览器滚动与安全区
This commit is contained in:
@@ -13,6 +13,8 @@ body.customer-mobile-body {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
body.customer-mobile-body #root {
|
||||
|
||||
@@ -555,6 +555,15 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.customer-douyu-submit-bar {
|
||||
min-width: 0;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.customer-douyu-submit-bar .customer-collect-submit.ant-btn {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu .customer-douyu-role-name-help {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
@@ -589,3 +598,47 @@
|
||||
border-color: #4a83ff !important;
|
||||
background: #4a83ff !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
/*
|
||||
* Safari 的地址栏和底部工具栏会动态压缩可视区域。资料阶段必须由页面滚动承载,
|
||||
* 不能把内容锁在 100vh 容器里;同时保留 dvh 和底部安全区,适配刘海屏与短屏。
|
||||
*/
|
||||
.customer-auth-page.is-douyu:not(.is-compact) {
|
||||
height: auto;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu:not(.is-compact) .customer-auth-shell {
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu:not(.is-compact) .customer-auth-main {
|
||||
padding-bottom: calc(40px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu:not(.is-compact) .customer-collect-body {
|
||||
padding-bottom: calc(20px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu:not(.is-compact) .customer-douyu-submit-bar {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 5;
|
||||
margin-inline: -16px;
|
||||
margin-top: 4px;
|
||||
padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
|
||||
background: linear-gradient(180deg, rgba(35, 41, 54, 0) 0%, #232936 28%, #232936 100%);
|
||||
}
|
||||
|
||||
.customer-auth-page.is-douyu.is-compact .customer-binding-stage {
|
||||
overflow-y: auto;
|
||||
overscroll-behavior-y: contain;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user