Skip to content

Add: Truncate breadcrumb link and show tooltips for search results

Warren Gifford requested to merge bee/truncate-filepath into main

Created by: abeatrix

Closes https://github.com/sourcegraph/sourcegraph/issues/30593

Issue: File-path is currently not truncated so the user is unable to tell the full file path/repo name when the browser window is shrunk : image

The above only applies to file match results as it is currently truncated for commits and repo results : image

image

This PR fixes the truncate issue for file match results, and add tooltip to display the following on hover when the texts are truncated:

  • full file-path for file match results
  • repo name for repo match results
  • commit title for commit match results

truncate file match result: image

display tooltip on hover when text is truncated: filematch

display repo name on hover when text is truncated: repomatch

display commit title on hover when text is truncated: commitmatch

Test plan

All associated test files and snapshots have been updated.

Merge request reports

Loading