|
|
@@ -233,7 +233,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
)}
|
|
|
|
|
|
{/* 上传遮罩 */}
|
|
|
- <div className="absolute inset-0 bg-black bg-opacity-0 hover:bg-opacity-20 transition-opacity duration-200 flex items-center justify-center">
|
|
|
+ <div className="absolute inset-0 bg-black/0 hover:bg-black/20 transition-opacity duration-200 flex items-center justify-center">
|
|
|
<svg
|
|
|
className="w-6 h-6 text-white opacity-0 hover:opacity-100 transition-opacity duration-200"
|
|
|
fill="none"
|
|
|
@@ -251,7 +251,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
|
|
|
{/* 上传中的加载状态 */}
|
|
|
{isUploading && (
|
|
|
- <div className="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center">
|
|
|
+ <div className="absolute inset-0 bg-black/50 flex items-center justify-center">
|
|
|
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-white"></div>
|
|
|
</div>
|
|
|
)}
|