From 5907e4778b647270c48d57c0279afece8c6d8c5f Mon Sep 17 00:00:00 2001 From: lau <1807121535@qq.com> Date: Thu, 26 Mar 2026 21:55:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E6=A0=B7=E5=BC=8F=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../styles/components/_theme-helpers.scss | 10 ---------- src/views/system/user/profile/userAvatar.vue | 20 +++++++++---------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/src/assets/styles/components/_theme-helpers.scss b/src/assets/styles/components/_theme-helpers.scss index faff0b7..931b39b 100644 --- a/src/assets/styles/components/_theme-helpers.scss +++ b/src/assets/styles/components/_theme-helpers.scss @@ -49,15 +49,5 @@ } -.avatar-upload-preview { - position: absolute; - top: 50%; - transform: translate(50%, -50%); - width: 200px; - height: 200px; - border-radius: 50%; - box-shadow: 0 0 4px #ccc; - overflow: hidden; -} diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue index 8e8c483..8fd0a0d 100644 --- a/src/views/system/user/profile/userAvatar.vue +++ b/src/views/system/user/profile/userAvatar.vue @@ -192,21 +192,19 @@ const closeDialog = () => { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; cursor: pointer; - line-height: 120px; + line-height: 110px; border-radius: 50%; } .avatar-upload-preview { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; - border-radius: 18px; - background: rgba(248, 250, 252, 0.9); + position: absolute; + top: 50%; + transform: translate(50%, -50%); + width: 200px; + height: 200px; + border-radius: 50%; + box-shadow: 0 0 4px #ccc; + overflow: hidden; } -.avatar-upload-preview img { - max-width: 100%; -}