-
Notifications
You must be signed in to change notification settings - Fork 31
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
Expand/Collapse truncated string #172
Comments
That's a good point, thanks. Wondering what the best way to handle it should be? Do you think hover/"tooltip" text would be enough? That doesn't really help on mobile, though, although perhaps that's not an issue since it's not really a particularly mobile-friendly element anyway. Seems like the options would be:
I think I'll put the tooltip text in regardless, since it's non-intrusive and doesn't make any difference to people who don't need it. Unsure about other options. Let me know your thoughts. (Just quick note -- technically you can access the full text by copying it to clipboard, although I agree that's not always practical. I use a clipboard manager so can readily see all my copied text, but not everyone's going to have that.) |
Actually -- it seems like the best approach would be to make the "..." at the end of the string clickable to expand the full string. Not sure about collapsing it again though? |
Awesome, thank you! |
Currently there is no way to expand a truncated string, when displaying a JSON in read-only mode (edits disabled).
It would be great if we could expand / collapse to see the full content of a string, while keeping it truncated by default, as configured by
stringTruncate
.Thanks
The text was updated successfully, but these errors were encountered: