perf: optimize app startup and background lifecycles

This commit is contained in:
inman
2026-08-19 00:56:15 +08:00
parent 31332f6d76
commit 927e13349b
121 changed files with 4359 additions and 1400 deletions

View File

@@ -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',
)}
>