Skip to content

Commit

Permalink
fix: dropdown layout fix (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshbutfairx authored Aug 23, 2024
1 parent b1342ff commit 945c96d
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions components/TopNav/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function TopNav() {
<span className="text-[17.111px] font-medium">SigNoz</span>
</Link>
<Popover.Group className="hidden items-center gap-x-6 lg:flex">
<Dropdown>
<Dropdown className='px-4' placement='bottom-start' classNames={{base: "top-[9px]"}}>
<DropdownTrigger>
<Button
className="truncate px-1.5 py-1 text-sm font-normal hover:text-signoz_robin-500"
Expand All @@ -105,7 +105,7 @@ export default function TopNav() {
</div>
</Button>
</DropdownTrigger>
<DropdownMenu aria-label="Static Actions" classNames={{list:"pl-1"}}>
<DropdownMenu aria-label="Static Actions" classNames={{list:"pl-1 grid grid-cols-2 w-[400px] gap-3 items-center"}}>
<DropdownItem
key="apm"
href='/application-performance-monitoring/'
Expand All @@ -114,25 +114,25 @@ export default function TopNav() {
alt="Bar Chart Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Monitor your applications"
>
APM
</DropdownItem>
<DropdownItem
key="LogManagement"
href='/log-management/'
key="Alerts"
href='/alerts-management/'
startContent={<Image
src="/img/index_features/logs_feature.svg"
alt="Logs Icon"
src="/img/index_features/concierge-bell_feature.svg"
alt="Drafting Compass Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Unlock insights from logs"
description="Stay aware with alerts"
>
Log Management
Alerts
</DropdownItem>
<DropdownItem
key="DistributedTracing"
Expand All @@ -142,7 +142,7 @@ export default function TopNav() {
alt="Drafting Compass Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Track requests across services"
>
Expand All @@ -156,25 +156,25 @@ export default function TopNav() {
alt="Drafting Compass Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Monitor metrics & build dashboards"
>
Metrics & Dashboards
</DropdownItem>
<DropdownItem
key="Alerts"
href='/alerts-management/'
key="LogManagement"
href='/log-management/'
startContent={<Image
src="/img/index_features/concierge-bell_feature.svg"
alt="Drafting Compass Icon"
src="/img/index_features/logs_feature.svg"
alt="Logs Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Stay aware with alerts"
description="Unlock insights from logs"
>
Alerts
Log Management
</DropdownItem>
<DropdownItem
key="Exceptions"
Expand All @@ -184,7 +184,7 @@ export default function TopNav() {
alt="Drafting Compass Icon"
width={20}
height={20}
className='mr-4'
className='mr-2'
/>}
description="Record exceptions automatically"
>
Expand Down

0 comments on commit 945c96d

Please sign in to comment.