Skip to content

[Repo Header] fix view on github inside dropdown

Administrator requested to merge naman/fix-repo-header-dropdown into main

Created by: thenamankumar

This PR resolved the issue https://github.com/sourcegraph/sourcegraph/issues/33730

The links inside the dropdown in the repo header for small screen devices are not working.

Resolved the issue by calling preventDefault in the wrapping MenuItem div.

Before

https://www.loom.com/share/ac84558af315428e8058f08ddd2f4acb

Test plan

  • Go to any file in the cloud using Safari with a viewport width < 990px
  • Open the right-side options menu beside the file path
  • Click "View on GitHub". The link should open in a new tab.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading