-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance: Update font size and height of drop down for mobile view #35
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for landing-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@rithviknishad I have changed the files as you instructed. Can you please check it or is anything I'm missing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivankacker Is it fine or do I need to adjust more? |
@Tanuj1718 a little more would be good. Also we are adding "Timeline" to the header, so make sure it has enough space to accommodate for that too |
@shivankacker Done as you instructed. Also there is enough space for 'Timeline' tab in both mobile and web view. |
@Tanuj1718 lgtm, can you also fix the following bug with the PR: clicking on an item on the menu is taking you to the corresponding page correctly, but should also close the menu. |
Done @shivankacker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2024-12-19.at.3.32.00.AM.mov
@Tanuj1718 doesn't seem to be fixed...
I have done it for supporters and contact tab. Is it not good for products and community tab? Because on hovering it , there is a dropdown menu appears and on clicking one of the options in drop down menu, the menu is getting closed. Screen.Recording.2024-12-19.at.10.30.59.AM.movFor PRODUCTS & COMMUNITY tab, menu is getting closed already. Record_2024-12-19-10-49-01.mp4 |
@Tanuj1718 working for other options, but clicking on products > CARE does not close the menu. (Sometimes Next js will do a direct page change, where it seems to work, but when it changes the page dynamically, it doesnt. Keep clicking on navbar links to replicate) |
Done. Please let me know whether it is fine or not. Screen.Recording.2024-12-19.at.8.50.27.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanuj1718 everything works well on mobile, but there are bugs on desktop now
components/header.tsx
Outdated
@@ -82,7 +82,7 @@ export default function Header(props: { fixed?: boolean }) { | |||
const navigation: NavigationItem[] = [ | |||
{ type: "dropdown", content: "Products", items: productsItems }, | |||
{ type: "dropdown", content: "Community", items: communityItems }, | |||
{ type: "link", content: "Supporters", href: "/supporters" }, | |||
{ type: "section", content: "Supporters", id: "supporters", page: "/supporters" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? 🤔
Because I want to use the section properties defined in 'switch' statements. Otherwise I have to write those properties in 'link' case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanuj1718 a link must be used for links, you should find a way around this without disturbing existing elements
@@ -159,6 +163,7 @@ export default function Header(props: { fixed?: boolean }) { | |||
href={item.page + "#" + item.id} | |||
className={className} | |||
onClick={(e) => { | |||
setMobileMenuOpen(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should come below the prevent default and stop propagation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
components/header.tsx
Outdated
}} | ||
/> | ||
))} | ||
<div className={`${mobileMenuOpen ? "h-12" : "flex flex-row" }`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes here are possibly causing desktop dropdown to break
Screen.Recording.2024-12-19.at.10.15.00.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes here are possibly causing desktop dropdown to break
Screen.Recording.2024-12-19.at.10.15.00.PM.mov
Yes, you are right. Thank you for pointing out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
components/header.tsx
Outdated
@@ -82,7 +82,7 @@ export default function Header(props: { fixed?: boolean }) { | |||
const navigation: NavigationItem[] = [ | |||
{ type: "dropdown", content: "Products", items: productsItems }, | |||
{ type: "dropdown", content: "Community", items: communityItems }, | |||
{ type: "link", content: "Supporters", href: "/supporters" }, | |||
{ type: "section", content: "Supporters", id: "supporters", page: "/supporters" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanuj1718 a link must be used for links, you should find a way around this without disturbing existing elements
@@ -159,6 +163,7 @@ export default function Header(props: { fixed?: boolean }) { | |||
href={item.page + "#" + item.id} | |||
className={className} | |||
onClick={(e) => { | |||
setMobileMenuOpen(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes: #34
fixes #27
Description
UIupdate.mp4