FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: hoverMessage now properly renders as a tooltip · sourcegraph/browser-extensions@c7409d3 · GitHub

This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit c7409d3

Browse files
Stephen Gutekanst
committed
fix: hoverMessage now properly renders as a tooltip
Prior to this change, extensions such as code discussions would specify a `DecorationAttachmentRenderingOptions.hoverMessage` but it would only work on Sourcegraph, it was unused in the browser extension. Now it renders as a native browser tooltip, which is okay for most cases. Fixes sourcegraph/sourcegraph-extension-api#107
1 parent 2836554 commit c7409d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/libs/code_intelligence/extensions.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export const applyDecoration = (
193193
after.className = 'sourcegraph-extension-element'
194194
after.style.backgroundColor = decoration.after.backgroundColor || null
195195
after.textContent = decoration.after.contentText || null
196+
after.title = decoration.after.hoverMessage || ''
196197

197198
const annotation = decoration.after.linkURL ? linkTo(decoration.after.linkURL)(after) : after
198199
codeElement.appendChild(annotation)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL