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

ui: hide node handle when name is empty #147

Merged
merged 1 commit into from
May 16, 2023

Conversation

ArcaTech
Copy link
Contributor

This is for #31

This toggles between display: none or block depending on if node.name is empty or not. There might be a better way to do this. Maybe using a nbsp or a blank icon (with a little width) instead of hiding the entire handle would make sense.

I considered trying to do something conditional in handleIcon on TextField, but it doesn't look like the component holds the node data itself so it didn't seem like it would work.

@progrium progrium merged commit 123c833 into treehousedev:main May 16, 2023
@ArcaTech ArcaTech deleted the hide-empty-node-bullet branch May 30, 2023 18:12
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.

2 participants