Correção da Siderbar
This commit is contained in:
parent
24179c550e
commit
ebd40eecc2
@ -262,7 +262,7 @@ export default function Sidebar({ children }: SidebarProps) {
|
||||
</div>
|
||||
|
||||
{/* MENU */}
|
||||
<nav className="flex-1 p-3 overflow-y-auto">
|
||||
<nav className="flex-1 px-3 py-6 overflow-y-auto flex flex-col gap-2">
|
||||
{menuItems.map((item) => {
|
||||
const Icon = item.icon;
|
||||
const isActive = pathname === item.href;
|
||||
@ -271,7 +271,7 @@ export default function Sidebar({ children }: SidebarProps) {
|
||||
<Link key={item.label} href={item.href}>
|
||||
<div
|
||||
className={`
|
||||
flex items-center gap-3 px-3 py-2 rounded-lg mb-1 transition-colors
|
||||
flex items-center gap-3 px-3 py-2 rounded-lg transition-colors
|
||||
${
|
||||
isActive
|
||||
? `${isDefaultMode ? "bg-white/20 text-white font-semibold" : "bg-sidebar-primary text-sidebar-primary-foreground font-semibold"}`
|
||||
@ -289,8 +289,15 @@ export default function Sidebar({ children }: SidebarProps) {
|
||||
})}
|
||||
</nav>
|
||||
|
||||
{/* PERFIL ORIGINAL + NOME BRANCO */}
|
||||
<div className={`mt-auto p-3 border-t ${isDefaultMode ? "border-white/10" : "border-sidebar-border"}`}>
|
||||
{/* PERFIL ORIGINAL + NOME BRANCO - CORREÇÃO DE ALINHAMENTO AQUI */}
|
||||
<div
|
||||
className={`
|
||||
mt-auto p-3 border-t
|
||||
${isDefaultMode ? "border-white/10" : "border-sidebar-border"}
|
||||
flex flex-col
|
||||
${sidebarCollapsed ? "items-center justify-center" : "items-stretch"}
|
||||
`}
|
||||
>
|
||||
<SidebarUserSection
|
||||
userData={userData}
|
||||
sidebarCollapsed={sidebarCollapsed}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user