Skip to content

Hide the sidebar when collapsed to prevent browser search to find text from it #2725

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

GuillaumeGomez
Copy link
Member

Fixes #2721.

For the GUI test, I need to add a new command to ensure the text is not searchable when collapsed. I opened an issue for that in browser-ui-test: GuillaumeGomez/browser-UI-test#659.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Jun 5, 2025
@GuillaumeGomez GuillaumeGomez requested a review from ehuss June 5, 2025 14:29
@GuillaumeGomez GuillaumeGomez force-pushed the search-collapsed branch 4 times, most recently from 44dfae5 to 9c1d6db Compare June 5, 2025 15:10
@GuillaumeGomez
Copy link
Member Author

Thanks to the GUI tests, I uncovered the case where the window size is too small and therefore the sidebar should not be displayed by default. =D

@GuillaumeGomez
Copy link
Member Author

Anyway, it's ready for review.

@ehuss
Copy link
Contributor

ehuss commented Jun 21, 2025

Thank you very much!

This seems to introduce a few regressions:

  • On Safari, the animation to display the sidebar seems broken. The sidebar pops into existence without animating, but the rest of the page animates over on top of it.
  • On Firefox, if the window is below 1080px wide, and the sidebar is visible, reloading the page shows a blank sidebar. Normally it should reset so that the page loads with the sidebar hidden.

Would you be able to look into those issues?

@GuillaumeGomez
Copy link
Member Author

On safari, sadly no. But on firefox, definitely. :)

@GuillaumeGomez
Copy link
Member Author

Fixed. I also extended the GUI test to ensure it doesn't happen again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser search finds sidebar text when it is hidden
3 participants