fix(promotion): 稳定分享弹窗切换高度并暂隐藏奖励入口

This commit is contained in:
zhanjunhao
2026-11-26 16:06:04 +08:00
parent 870b51d054
commit 5527aab0e6
3 changed files with 58 additions and 22 deletions
+17 -4
View File
@@ -10,6 +10,8 @@
--pm-soft: var(--brand-primary-soft);
--pm-qr-surface: var(--ui-color-white);
--pm-poster-ink: var(--ui-color-white);
--pm-body-max-height: calc(100dvh - 200px);
--pm-tab-panel-height: 448px;
max-width: calc(100vw - 32px);
padding-block: 24px;
}
@@ -29,13 +31,24 @@
right: 24px;
}
.promotion-modal .ant-modal-body {
max-height: calc(100dvh - 160px);
max-height: var(--pm-body-max-height);
overflow-y: auto;
overscroll-behavior: contain;
}
.promotion-tabs {
max-block-size: var(--pm-body-max-height);
}
.promotion-tabs > .ant-tabs-nav {
flex-shrink: 0;
margin-bottom: 24px;
}
.promotion-tabs > .ant-tabs-body-holder {
flex: 0 1 var(--pm-tab-panel-height);
min-block-size: 0;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.pm-tab-label {
display: inline-flex;
align-items: center;
@@ -312,6 +325,9 @@
outline-offset: 3px;
}
@media (max-width: 600px) {
.promotion-modal.ant-modal {
--pm-tab-panel-height: 760px;
}
.promotion-modal .ant-modal-container {
padding: 20px;
}
@@ -322,9 +338,6 @@
top: 18px;
right: 16px;
}
.promotion-modal .ant-modal-body {
max-height: calc(100dvh - 136px);
}
.pm-link-layout,
.pm-poster-layout {
grid-template-columns: minmax(0, 1fr);