Skip to content
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

Fix issues with annotation tooltip #49

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Fix issues with annotation tooltip #49

merged 3 commits into from
Oct 14, 2024

Conversation

Kr0nox
Copy link
Contributor

@Kr0nox Kr0nox commented Oct 14, 2024

This PR fixes two issue with the annotation tooltip:

The tooltip can now display html code and not just plain text.

The tooltip can no longer grow outside of the screen.
For this it calculates the tooltips distance to the edge of the screen and sets its maximum size accordingly.
Text gets broken up at the spaces or other seperator symbols if possible, otherwise an inword break could be inserted.
If the broken up text is too long to be fully displayed, since the tooltip would grow out of the bottom of the page, a scrollbar will be displayed.

grafik

@Kr0nox Kr0nox linked an issue Oct 14, 2024 that may be closed by this pull request
@Kr0nox Kr0nox requested a review from sebinside October 14, 2024 08:51
@sebinside sebinside merged commit 2fd414a into main Oct 14, 2024
1 check passed
@sebinside sebinside deleted the fix-tooltip-issues branch October 14, 2024 08:59
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.

Tooltips in Webeditor do not line break on longer texts
2 participants