📦 Upgrade tailwind and start using size utility (#989)

This commit is contained in:
Luke Vella 2024-01-19 14:43:09 +07:00 committed by GitHub
parent 048c475cf7
commit d0b359afaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 177 additions and 170 deletions

View file

@ -37,9 +37,9 @@ export const UserAvatar = ({
className={clsx(
"inline-flex items-center justify-center overflow-hidden rounded-full font-semibold",
{
"h-6 w-6 text-sm": size === "sm",
"h-8 w-8 text-base": size === "md",
"h-14 w-14 text-2xl": size === "lg",
"size-6 text-sm": size === "sm",
"size-8 text-base": size === "md",
"size-14 text-2xl": size === "lg",
},
!name
? "bg-gray-200"
@ -57,9 +57,9 @@ export const UserAvatar = ({
) : (
<UserIcon
className={clsx({
"h-4 w-4": size === "sm",
"h-6 w-6": size === "md",
"h-8 w-8": size === "lg",
"size-4": size === "sm",
"size-6": size === "md",
"size-8": size === "lg",
})}
/>
)}