Skip to content
Snippets Groups Projects
Commit ddea4d1b authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

actual fix

parent 0d49c702
No related branches found
No related tags found
1 merge request!51Mobile
......@@ -17,7 +17,7 @@ export const MobileNav = ({ items, user }: { items: SidebarNavItem[], user: User
const visibleItems = user ? items : items.slice(0, 2)
return (
<nav className={`grid h-full max-w-lg grid-cols-${visibleItems.length} justify-between mx-auto`}>
<nav className={`container flex flex-row items-center h-full w-full max-w-lg justify-between mx-auto`}>
{visibleItems.map((item, index) => {
const Icon = Icons[item.icon || "arrowRight"]
if (item.title === "My Profile") {
......@@ -25,7 +25,7 @@ export const MobileNav = ({ items, user }: { items: SidebarNavItem[], user: User
}
return (
item.href && (
<Link key={index} href={item.disabled ? "/" : item.href} className="inline-flex items-center justify-center">
<Link key={index} href={item.disabled ? "/" : item.href} className="inline-flex items-center justify-center w-full h-full">
<Button variant={`${path.startsWith(item.href) ? "secondary" : "ghost"}`} size="logo">
<Icon />
</Button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment