-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Search page not displayed correctly when using hamburger menu on Jenkins website in medium or small sized screens #6046
Comments
Hi @lakshmishreea122003 Thanks for opening this issue! Could you please provide screenshots to illustrate the issue? I am asking because I cannot seem to be able to see what you saw. |
I did look into many directories and files but was unable to figure out where the changes can be made. It would be very helpful if I can be given a clue as to where I can get started. |
Hi @lakshmishreea122003 Yes, I see the problem now. It appears there is significant overlapping of the navigation menu with the search modal / popup once you first reduce the size of the screen and then click on the hamburger button before clicking on the search bar. So one way to deal with it is to click on the hamburger button a second time. Or, we could improve on the UX by hiding the menu to reveal the search modal instead. I guess you would be interesed to submit a PR for the second suggestion. You would want to update the mobile version (which I am guess maybe the |
Thanks for the information @krisstern. I'll start working on it. |
Note that the hamburger menu, searchbar and other components of the page are defined in another repository, yo can check https://github.com/jenkins-infra/jenkins-io-components/blob/main/src/jio-navbar.css
There is only one version of the pages. |
Thanks @zbynek for pointing this out! So if we later would like to build the website with an alternative tools then we will need to take into account this repository as well. Let me add this to the relevant GSoG ideas page over the next few days. In the local build of the website I can see the following, hence the confusion: |
…psed content is already shown on small-screen (#62) I came up with this PR in my attempt to fix the issue jenkins-infra/jenkins.io#6046 .
So this one is good from a technical point of view, but the scrollbars are a little jarring. Its not immediately noticable that its scrollable in firefox mobile @kmartens27 as the current owner of jenkins.io do you have any feelings about this? |
I have noticed a few websites use sidebars in place of scrollbars. I can proceed to try out the same if that is appropriate. |
Since I had observed many websites use scrollbars I considered doing the same to fix the issue #6056 . But I shall make the necessary changes based on your suggestions. |
Thanks so much @lakshmishreea122003! Thanks for looping me in @halkeye. In reviewing the McAfee site, it appears that when the computer browser window is smaller and the About link is clicked, that selection's navigation is overlayed on the initial options mcafee-navigation.movI agree with @halkeye that the scrolling option is not obvious when navigating the Jenkins page, and the McAfee site seems to have a bit of different functionality. Is the concern for smaller browser windows or mobile usage? The McAfee site also functions differently depending on which type of device is used, so this clarity would help. The scrolling bars would absolutely help in cases where the browser window is so small that the list of navigation links is cut off/unable to be scrolled. Also, is the goal to ensure the search is shown when clicked/enabled or is it to make the navigation function differently? Finally, what are the smallest and largest dimensions you're working with when it comes to screen size? |
This topic is related to the issue #6056 . |
If using scrollbars is not appropriate to fix issue #6056 , in that case please do let me know what else can be done. This will help me work on the issue #6056 in a better manner and make necessary changes to PR jenkins-infra/jenkins-io-components#63 . |
@kmartens27 I have previously tried to answer the questions you asked . |
Hi @lakshmishreea122003, sorry for not responding sooner, I was trying to find some other examples of sites with similar functionality. As an alternative option, would it be possible to collapse some of the navigation links into their larger subject? That would help to reduce the length of the box that comes up, and may reduce the need for the scroll bars, or at least make it more transitional. The other quirk I noticed is that the Algolia search now appears on top of the hamburger and disables it from use, unless the search is cancelled out. |
I think thats the nature of storybook, I didn't setup storybook to have 0 padding like jenkins.io does we don't really have any control on how algoila works or where it shows up, not without doing custom UI |
longer term i'd like to see the nav bar to be able to infinitely nest, that'll kinda fix the issue with number of results. |
That makes sense @halkeye, thanks for clarifying! |
Thanks for the information. |
When using the Jenkins website https://www.jenkins.io/ on medium or small-sized screens, I noticed that when I click on the hamburger icon to open the menu, and then click on the search icon, the search page does not show up correctly. The collapsed content does not disappear and covers the page, so I cannot see the search results or input. I can only see the search page after clicking on the hamburger icon again to close the menu.
Suggestion
It would be better if the collapsed content disappeared when clicked on the search icon or elsewhere in the background so that the search page would be seen immediately.
The text was updated successfully, but these errors were encountered: