Skip to content

Commit

Permalink
fix navbar spaces (#8)
Browse files Browse the repository at this point in the history
* D

* fix lint
  • Loading branch information
munyanezaarmel authored Dec 5, 2024
1 parent 0afe9eb commit e44bbd5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/components/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"
import React, { useState, useMemo } from "react"
import { Input, Card, Typography, Menu, Collapse, Empty } from "antd"
import { Input, Card, Typography, Menu, Collapse, Empty, Button } from "antd"
import ToolMapButton from "./Button"

const { Title, Paragraph } = Typography
Expand Down Expand Up @@ -149,19 +149,19 @@ const EnAccessToolMap = ({ setIsModalOpen }: EnAccessToolMapProps) => {
<div className="flex justify-center space-x-4 my-5">
<Menu
mode="horizontal"
className="bg-transparent"
className="bg-transparent border-0"
selectedKeys={selectedCategories}
onClick={handleMenuClick}
>
{Object.entries(categories).map(([category, items]) => (
<Menu.SubMenu
key={category}
title={
<span style={{ fontSize: "1.2em", margin: "0 0 10px 0" }}>
<Button className="bg-[#95D5B2] hover:bg-[#2D6A4F]">
{category}
</span>
</Button>
}
className={`bg-[#95D5B2] hover:bg-[#2D6A4F] hover:text-white`}
className={` hover:bg-[#2D6A4F] hover:text-white custom-popup`}
>
{items.map((item) => (
<Menu.Item
Expand Down
3 changes: 3 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ body {
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}
.custom-popup {
border: none; /* Remove border from submenu */
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"fix-lint": " npx prettier . --write"
},
"dependencies": {
"antd": "^5.22.0",
Expand Down

0 comments on commit e44bbd5

Please sign in to comment.