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

improve handling of long node descriptions #47

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

0xB10C
Copy link
Owner

@0xB10C 0xB10C commented Oct 23, 2024

Previously, node descriptions were capped at 20 chars before they would be hidden and rendered as an HTML details-summary element.

This had a few UX problems:

To improve this, long node descriptions are now trucated once they would wrap. Upon clicking on them, they are expanded. Now, a user sees the start of the node description (as opposed to only seeing "description") while the node box sizes still are the same on initial page load.

warnet

Previously, node descriptions were capped at 20 chars, before they
would be hidden and rendered as an HTML details-summary element.

This had a few UX problems:
- users need to figure out that they can click on "description"
- users need to actually click on "description"

To improve this, long node descriptions are now trucated once they
would wrap. Upon clicking on them, they are expanded. Now, a user
sees the start of the node description (as opposed to only seeing
"description") while the node box sizes still are the same on initial
page load.
@0xB10C 0xB10C merged commit 2004d87 into main Oct 23, 2024
2 checks passed
@0xB10C 0xB10C deleted the 2024-10-improve-node-description branch October 23, 2024 09:15
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.

1 participant