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

A binding with no description but with a tooltip doesn't align correctly in the help panel #5436

Open
davep opened this issue Dec 27, 2024 · 0 comments · May be fixed by #5437
Open

A binding with no description but with a tooltip doesn't align correctly in the help panel #5436

davep opened this issue Dec 27, 2024 · 0 comments · May be fixed by #5437

Comments

@davep
Copy link
Contributor

davep commented Dec 27, 2024

The issue can be seen with this code:

from textual.app import App
from textual.binding import Binding

class HelpLayoutApp(App[None]):

    BINDINGS = [
        Binding("f1", "gndn1", tooltip="This doesn't line up"),
        Binding("f2", "gndn2", description="Does stuff", tooltip="This is fine"),
    ]

    def on_mount(self) -> None:
        self.action_show_help_panel()

if __name__ == "__main__":
    HelpLayoutApp().run()

giving this:

Screenshot 2024-12-27 at 08 22 09

note the extra space before the tooltip for f1.

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 a pull request may close this issue.

1 participant