update profile logo and title on topbar

This commit is contained in:
Wikzyy
2025-04-28 11:10:00 +07:00
parent cc2cd469a9
commit 6acea6499d

View File

@ -28,18 +28,18 @@ const HeaderTopbar = () => {
return (
<div className="flex items-center gap-4">
<div className="hidden md:flex flex-col items-end mr-2 text-right">
<div className="hidden md:flex flex-col items-end mr-2 text-right mt-1">
<span
className={`font-semibold text-sm leading-tight ${isSticky ? 'text-black' : 'text-white'}`}
className={`font-semibold text-lg leading-tight ${isSticky ? 'text-black' : 'text-white'}`}
>
{getAuth()?.user.username}
</span>
<span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-gray-400'}`}>
{getAuth()?.role_name}
<span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-white'}`}>
as {getAuth()?.role_name}
</span>
</div>
<Menu>
<Menu className="w-12 h-12">
<MenuItem
ref={itemUserRef}
toggle="dropdown"
@ -56,9 +56,9 @@ const HeaderTopbar = () => {
]
}}
>
<MenuToggle className="btn btn-icon rounded-full">
<MenuToggle className="btn btn-icon rounded-full w-12 h-12">
<img
className="w-9 h-9 rounded-full border border-gray-500 object-cover"
className="w-12 h-12 rounded-full border border-gray-500 object-cover"
src={toAbsoluteUrl('/media/avatars/profile.png')}
alt="User avatar"
/>