Skip to content

Commit

Permalink
feat(user-profile): smoother height switching (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
konata33 authored Sep 27, 2024
1 parent 9239483 commit e6459a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/renderer/src/modules/profile/user-profile-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@ export const UserProfileModalContent: FC<{
<Fragment>
<div
className={cn(
"center m-12 mb-4 flex shrink-0 flex-col",
"center m-12 mb-4 flex shrink-0 flex-col duration-700",
isHeaderSimple ? "mt-3 flex-row" : "flex-col",
)}
>
<Avatar
asChild
className={cn("aspect-square", isHeaderSimple ? "size-12" : "size-16")}
>
<m.span layout>
<m.span layout transition={{ duration: 0.35 }}>
<AvatarImage
className="duration-200 animate-in fade-in-0"
asChild
Expand All @@ -255,6 +255,7 @@ export const UserProfileModalContent: FC<{
</Avatar>
<m.div
layout
transition={{ duration: 0.35 }}
className={cn(
"flex cursor-text select-text flex-col items-center",
isHeaderSimple ? "ml-8 items-start" : "",
Expand Down

0 comments on commit e6459a5

Please sign in to comment.