调整客户编辑弹窗居中显示

This commit is contained in:
2026-07-03 00:08:53 +08:00
parent df589d537b
commit f26a7ec956
@@ -142,20 +142,22 @@
inset: 0; inset: 0;
z-index: 80; z-index: 80;
display: flex; display: flex;
align-items: flex-end; align-items: center;
justify-content: center; justify-content: center;
padding: 32rpx;
background: rgba(18, 15, 12, 0.48); background: rgba(18, 15, 12, 0.48);
animation: maskIn 180ms ease both; animation: maskIn 180ms ease both;
} }
.customer-modal { .customer-modal {
width: 100%; width: 100%;
max-height: 88vh; max-width: 640rpx;
max-height: 82vh;
overflow-y: auto; overflow-y: auto;
padding: 28rpx 28rpx calc(28rpx + env(safe-area-inset-bottom)); padding: 28rpx;
border-radius: 28rpx 28rpx 0 0; border-radius: 28rpx;
background: #fffaf4; background: #fffaf4;
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16); box-shadow: 0 18rpx 48rpx rgba(41, 31, 23, 0.18);
animation: modalUp 220ms ease both; animation: modalUp 220ms ease both;
} }
@@ -257,9 +259,11 @@
@keyframes modalUp { @keyframes modalUp {
from { from {
transform: translateY(40rpx); opacity: 0;
transform: translateY(20rpx) scale(0.98);
} }
to { to {
transform: translateY(0); opacity: 1;
transform: translateY(0) scale(1);
} }
} }