perf: optimize app startup and background lifecycles
This commit is contained in:
@@ -192,7 +192,7 @@ export function UserProfileDialog({
|
||||
<button
|
||||
type="button"
|
||||
aria-label="关闭个人资料"
|
||||
className="flex h-9 w-9 items-center justify-center rounded-md border border-foreground/15 bg-white text-foreground transition-transform active:scale-[0.985]"
|
||||
className="flex h-9 w-9 items-center justify-center rounded-md border border-foreground/15 bg-white text-foreground"
|
||||
onClick={() => onOpenChange(false)}
|
||||
disabled={profileAvatarProcessing || profileSaving}
|
||||
>
|
||||
@@ -223,7 +223,7 @@ export function UserProfileDialog({
|
||||
<label
|
||||
htmlFor="profile-avatar-upload"
|
||||
className={cn(
|
||||
'inline-flex min-h-8 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-foreground/15 bg-white px-2.5 py-1.5 text-xs font-semibold text-foreground shadow-soft transition-transform active:scale-[0.985]',
|
||||
'inline-flex min-h-8 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-foreground/15 bg-white px-2.5 py-1.5 text-xs font-semibold text-foreground shadow-soft',
|
||||
(profileAvatarProcessing || profileSaving) && 'pointer-events-none opacity-60',
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user