fix(mini-program): 修复剧本详情页顶部被遮挡和布局溢出问题

- 添加 overflow: hidden 防止整体页面溢出
- 使用 env(safe-area-inset-top) 适配刘海屏安全区域
- 内容区改为 overflow-y: auto 实现局部滚动
- 调整 padding 避免顶部内容被状态栏遮挡
This commit is contained in:
2026-04-07 22:08:21 +08:00
parent 5e68bbfe71
commit ae7392c37e
@@ -77,6 +77,7 @@ const goBack = () => {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
background: linear-gradient(180deg, #0F071A 0%, #1A0B2E 50%, #0F071A 100%);
}
@@ -85,7 +86,7 @@ const goBack = () => {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 32rpx;
padding: max(12px, env(safe-area-inset-top)) 32rpx 24rpx;
background: rgba(168, 85, 247, 0.1);
border-bottom: 1px solid rgba(168, 85, 247, 0.2);
flex-shrink: 0;
@@ -122,7 +123,8 @@ const goBack = () => {
/* ==================== 滚动内容区 ==================== */
.detail-content {
flex: 1;
padding: 32rpx;
overflow-y: auto;
padding: 0 32rpx 32rpx;
}
.content-container {