fix(frontend): 极矮窗口不再让卡片内部滚动

- 移除登录卡片的 overflow:auto(避免嵌套滚动导致按钮点不到)
- 新增 max-height:560px 断点:交给页面整体滚动,其余高度仍然一屏不滚动

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liufumingren 2026-11-02 00:30:44 +08:00
parent dc8f0dadf3
commit 7254125088

View File

@ -712,7 +712,6 @@ onUnmounted(() => {
border: none;
border-radius: 16px;
box-shadow: 0 30px 70px rgba(3, 12, 30, 0.55);
overflow: auto;
}
.login-card :deep(.el-card__body) {
@ -883,6 +882,25 @@ onUnmounted(() => {
}
}
/* 极矮窗口(如被压缩的预览窗):交给页面整体滚动,避免卡片内部再滚动导致点不到按钮 */
@media (max-height: 560px) {
.login-page {
align-items: flex-start;
height: auto;
min-height: 100%;
overflow-y: auto;
padding: 16px 24px;
}
.login-shell {
max-height: none;
}
.login-panel {
max-height: none;
}
}
/* 窄屏 / 移动端:上下布局,插画在上、表单卡片在下;此时允许页面纵向滚动 */
@media (max-width: 960px) {
.login-page {