Skip to content

add ellipsis to plugin description#809

Merged
dzhou121 merged 1 commit intolapce:masterfrom
bbrabbitt:pluginellipsis
Jul 18, 2022
Merged

add ellipsis to plugin description#809
dzhou121 merged 1 commit intolapce:masterfrom
bbrabbitt:pluginellipsis

Conversation

@bbrabbitt
Copy link
Copy Markdown
Contributor

This PR implements #808 . The added code calculates if the text_layout is larger than the current plugin panel width. If so, it will add ... to the truncation point using hit_test_point. The code is designed and tested against unicode characters to make sure it will not panic when dealing with unicode characters.

@MinusGix MinusGix added the A-ui Area: UI rendering and interactions label Jul 18, 2022
@dzhou121 dzhou121 merged commit c246f14 into lapce:master Jul 18, 2022
@bbrabbitt bbrabbitt deleted the pluginellipsis branch July 18, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ui Area: UI rendering and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants