Skip to content

Truncate long property values in tooltip#253

Merged
FlorentinD merged 1 commit into
mainfrom
tooltip-truncated
Nov 14, 2025
Merged

Truncate long property values in tooltip#253
FlorentinD merged 1 commit into
mainfrom
tooltip-truncated

Conversation

@FlorentinD

@FlorentinD FlorentinD commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

ref GDS-64

@adamnsch

Copy link
Copy Markdown
Collaborator

Could you share a screenshot please?

@FlorentinD

Copy link
Copy Markdown
Collaborator Author
image

@adamnsch adamnsch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Comment thread changelog.md

## Improvements

- Truncate large property values in the rendered output.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even bug fix I would say :)

Comment thread js-applet/src/index.ts
if (tooltip !== null) {
this.hoverInteraction = new HoverInteraction(this.nvl)

const truncateValue = (value: any, maxLength: number = 100): string => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this maxLength will be good for all window sizes, but let's not worry about it for now

@FlorentinD FlorentinD merged commit e18cf18 into main Nov 14, 2025
6 checks passed
@FlorentinD FlorentinD deleted the tooltip-truncated branch November 14, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants