Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
24.07k stars 741 forks source link

Quality of life: Expand the hover/click area for the tree nodes #4636

Closed darrenburns closed 3 weeks ago

darrenburns commented 3 weeks ago

A quick quality of life change.

If you had nodes with small names, e.g. ., they could be quite hard to click on.

This change expands the range which hover/click affects a node. This brings it in line with how the tree works in VSCode/PyCharm.

https://github.com/Textualize/textual/assets/5740731/60df511d-924c-4f4a-a60f-54c44d25f6be