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

Non-cryptic way to add spacing in a View or Group #2062

Open
mdickinson opened this issue Aug 6, 2024 · 0 comments
Open

Non-cryptic way to add spacing in a View or Group #2062

mdickinson opened this issue Aug 6, 2024 · 0 comments

Comments

@mdickinson
Copy link
Member

mdickinson commented Aug 6, 2024

Some of our project code has views that resemble this:

        View(
            VGroup(
                Heading("Some heading"),
                HGroup(
                    "15",
                    Item("my_interesting_trait"),
                    "15",
                    Item("my_other_interesting_trait"),
                ),
            ),
        )

Those "15"s are cryptic, and hard to do a doc search for. The meaning is documented under the Item docstring in the API docs, but you still have to do some guessing or code diving to even think to look at the Item docs.

It would be nice to have a non-cryptic alternative to these, e.g., something like Spacer(15) or Padding(15).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant