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

Placeholder width can't be set to auto #1508

Closed
rodrigogiraoserrao opened this issue Jan 6, 2023 · 2 comments · Fixed by #1509
Closed

Placeholder width can't be set to auto #1508

rodrigogiraoserrao opened this issue Jan 6, 2023 · 2 comments · Fixed by #1509

Comments

@rodrigogiraoserrao
Copy link
Contributor

Because of the (convoluted 🤪) way in which I implemented Placeholder, turns out you can't set its width to auto, otherwise the placeholder collapses.

E.g., if you run the app below, you will have an empty screen:

from textual.app import App
from textual.widgets import Placeholder

class MyApp(App):
    CSS = """
    Placeholder { width: auto; }
    """

    def compose(self):
        yield Placeholder()
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@github-actions
Copy link

github-actions bot commented Jan 8, 2023

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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