-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: tooltip overlap pdf/text view #533
feat: tooltip overlap pdf/text view #533
Conversation
|
This reverts commit 4e43f5d.
packages/discovery-react-components/src/components/CIDocument/types.ts
Outdated
Show resolved
Hide resolved
packages/discovery-react-components/src/components/DocumentPreview/types.ts
Show resolved
Hide resolved
packages/discovery-react-components/src/components/DocumentPreview/types.ts
Show resolved
Hide resolved
...eact-components/src/components/CIDocument/components/CIDocumentContent/CIDocumentContent.tsx
Outdated
Show resolved
Hide resolved
...s/discovery-react-components/src/components/DocumentPreview/components/HtmlView/HtmlView.tsx
Outdated
Show resolved
Hide resolved
...ery-react-components/src/components/DocumentPreview/components/PdfHighlight/PdfHighlight.tsx
Outdated
Show resolved
Hide resolved
...ery-react-components/src/components/DocumentPreview/components/PdfHighlight/PdfHighlight.tsx
Outdated
Show resolved
Hide resolved
Screenshot 1 and 2: I updated the implementation to match the described design. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me, didn't see any issues in either PDF or Text views. Just had some minor suggestions -- with those fixed, approved.
...ery-react-components/src/components/DocumentPreview/components/PdfHighlight/PdfHighlight.tsx
Outdated
Show resolved
Hide resolved
packages/discovery-react-components/src/components/TooltipHighlight/TooltipHighlight.tsx
Outdated
Show resolved
Hide resolved
@@ -162,6 +159,28 @@ export function calcToolTipContent( | |||
return tooltipContent; | |||
} | |||
|
|||
function calcOneTooltipRow( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly does this function do? Please add a comment.
packages/discovery-react-components/src/components/TooltipHighlight/TooltipHighlight.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that the scrolling issue is fixed now. Code changes look good to me
What do these changes do/fix?
Added tooltip for overlapping enrichments.
PDF view
Text view
How do you test/verify these changes?
Also, In Components sample app, test contracts visualization. Should be same as before. Some changes in the other views, required fixes in this view:
Have you documented your changes (if necessary)?
NA
Are there any breaking changes included in this pull request?
No