Text eliding with ellipsis on datagrid text renderer#105
Merged
blink1073 merged 3 commits intojupyterlab:masterfrom Aug 24, 2020
Merged
Text eliding with ellipsis on datagrid text renderer#105blink1073 merged 3 commits intojupyterlab:masterfrom
blink1073 merged 3 commits intojupyterlab:masterfrom
Conversation
Contributor
|
cc @ellisonbg thoughts on this one? |
Contributor
Author
Contributor
|
Can we make it configurable whether the ellipsis is at the beginning or end
of the cell? The type of content will determine which is more optimal.
…On Thu, Aug 20, 2020 at 11:01 AM Naveen Michaud-Agrawal < ***@***.***> wrote:
This is what it looks like for the datagrid example:
[image: image]
<https://user-images.githubusercontent.com/648190/90808210-a618ef80-e2ed-11ea-8c82-beb60735b59c.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGXUBNZU7OZ2OR6I5FYK3SBVQI5ANCNFSM4P63MZTQ>
.
--
Brian E. Granger
Principal Technical Program Manager, AWS AI Platform (brgrange@amazon.com)
On Leave - Professor of Physics and Data Science, Cal Poly
@ellisonbg on GitHub
|
Contributor
Author
Yeah, that could be done as a ConfigOption on the renderer. Curious though - what type of content have you seen where ellipsis at the beginning was better? Edit: unless you are thinking of right-to-left languages. |
Contributor
Author
ellisonbg
approved these changes
Aug 20, 2020
Contributor
|
Released as part of |
Member
File paths could be one :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR (phosphorjs/phosphor#341) was sitting latent on the phosphor repo - I ported it over to lumino. I removed the optionality of eliding text - I feel like in almost all cases it looks better visually, although if you feel otherwise i can add the option back. I also improved the margins around the text a bit for easier readability.