mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Sidebar Highlight Fix
This commit is contained in:
parent
7f98261f7b
commit
2e73acdeba
@ -104,7 +104,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/sites"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/sites' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/sites') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Globe size={18} />
|
||||
<span>Sites</span>
|
||||
@ -113,7 +113,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/servers"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/servers' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/servers') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Server size={18} />
|
||||
<span>Servers</span>
|
||||
@ -122,7 +122,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/applications"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/applications' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/applications') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Layout size={18} />
|
||||
<span>Applications</span>
|
||||
@ -131,7 +131,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/uptime"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/uptime' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/uptime') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Clock size={18} />
|
||||
<span>Uptime Pages</span>
|
||||
@ -144,7 +144,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/maintenance"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/maintenance' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/maintenance') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Tool size={18} />
|
||||
<span>Maintenance</span>
|
||||
@ -153,7 +153,7 @@ export default function Sidebar({ children, username, fullName, breadcrumbPath }
|
||||
<li className="w-full">
|
||||
<Link
|
||||
href="/dashboard/settings"
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname === '/dashboard/settings' ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
className={`flex items-center w-full justify-start px-3 py-2 ${pathname.startsWith('/dashboard/settings') ? 'bg-primary/20 text-primary font-medium' : ''}`}
|
||||
>
|
||||
<Settings size={18} />
|
||||
<span>Settings</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user