diff --git a/accounts/templates/accounts/profile.html b/accounts/templates/accounts/profile.html index 3239416..ef5cb17 100644 --- a/accounts/templates/accounts/profile.html +++ b/accounts/templates/accounts/profile.html @@ -39,8 +39,8 @@ .msg.success { color: #166534; } /* 图片放大模态框 */ - .image-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; } - .image-modal-content { max-width: 90%; max-height: 90%; border-radius: 8px; } + .image-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; overflow: hidden; } + .image-modal-content { max-width: 90%; max-height: 90%; border-radius: 8px; transform-origin: center center; cursor: grab; user-select: none; } .image-modal-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; } @@ -79,7 +79,6 @@ {% endif %} {% if subpage == "password" %} - {% if permission_name != "管理员" and not profile_user.manage_key %}