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 ( return (
<div className="flex items-center gap-4"> <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 <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} {getAuth()?.user.username}
</span> </span>
<span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-gray-400'}`}> <span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-white'}`}>
{getAuth()?.role_name} as {getAuth()?.role_name}
</span> </span>
</div> </div>
<Menu> <Menu className="w-12 h-12">
<MenuItem <MenuItem
ref={itemUserRef} ref={itemUserRef}
toggle="dropdown" 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 <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')} src={toAbsoluteUrl('/media/avatars/profile.png')}
alt="User avatar" alt="User avatar"
/> />