diff --git a/packages/ui/certd-client/src/views/certd/mine/user-profile.vue b/packages/ui/certd-client/src/views/certd/mine/user-profile.vue index f20c98b09..c7160cae3 100644 --- a/packages/ui/certd-client/src/views/certd/mine/user-profile.vue +++ b/packages/ui/certd-client/src/views/certd/mine/user-profile.vue @@ -28,19 +28,19 @@
👤 - {{ userInfo.username }} + {{ userInfo.username }} 📧 - {{ userInfo.email || "未绑定邮箱" }} + {{ userInfo.email || "未绑定邮箱" }} 📱 - {{ userInfo.mobile || "未绑定手机号" }} + {{ userInfo.mobile || "未绑定手机号" }} @@ -924,18 +924,84 @@ onMounted(async () => { } @media (max-width: 768px) { + .card-header { + padding: 32px 16px; + } + .header-content { flex-direction: column; text-align: center; + gap: 18px; + } + + .avatar-wrapper { + margin-bottom: 2px; + } + + .user-avatar { + width: 88px !important; + height: 88px !important; + line-height: 88px !important; + } + + .avatar-edit-btn { + right: -2px; + bottom: 0; + } + + .user-name { + justify-content: center; + margin-bottom: 14px; + font-size: 22px; + gap: 6px; } .user-details { justify-content: center; + flex-direction: column; + align-items: center; + gap: 6px; + width: 100%; + } + + .detail-tag { + justify-content: flex-start; + width: min(230px, calc(100vw - 96px)); + min-height: 34px; + padding: 5px 8px 5px 12px; + border-radius: 12px; + white-space: nowrap; + margin-right: 0; + text-align: left; + } + + .tag-icon { + flex: 0 0 auto; + } + + .tag-text { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + } + + .detail-edit-btn { + margin: 0 -4px 0 2px; + flex: 0 0 auto; } .action-buttons { justify-content: center; width: 100%; + gap: 10px; + margin-top: 2px; + } + + .action-buttons :deep(.ant-btn) { + min-width: 90px; + height: 32px; + padding: 4px 12px; } } }