Skip to content

Commit 1ff28a7

Browse files
committed
fix: dynamically adjust dropdown width to prevent text wrapping
1 parent 1ab3848 commit 1ff28a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Navbar/navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function Navbar() {
122122
<span className="after:absolute after:-bottom-1 after:right-1/2 after:w-0 after:transition-all after:h-0.5 after:bg-white after:group-hover:w-3/6"></span>
123123
{show === link.title && link.subMenu && (
124124
<div
125-
className='subMenu absolute z-[9] mt-8 w-[150px] rounded-md left-[-15px] gradient-bg px-2 py-1 flex flex-col justify-center space-y-0'
125+
className='subMenu absolute z-[9] mt-8 min-w-max max-w-full rounded-md left-[-15px] gradient-bg px-2 py-1 flex flex-col justify-center space-y-0'
126126
onMouseEnter={handleSubMenuEnter}
127127
onMouseLeave={handleSubMenuLeave}>
128128
{link.subMenu.map((subL) => (

0 commit comments

Comments
 (0)