-
Notifications
You must be signed in to change notification settings - Fork 889
Single cell height Select widget? #5652
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
Comments
from textual.app import App, ComposeResult
from textual.widgets import Select
class ShortSelectApp(App[None]):
CSS = """
SelectCurrent {
border: none;
}
"""
def compose(self) -> ComposeResult:
yield Select[int]((("First", 0), ("Second", 1), ("Third", 2)))
yield Select[int]((("First", 0), ("Second", 1), ("Third", 2)))
yield Select[int]((("First", 0), ("Second", 1), ("Third", 2)))
if __name__ == "__main__":
ShortSelectApp().run() Is that the kind of effect you were looking for? |
Yeah, that's exactly the effect I was looking for. Cheers. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Is it possible to do single cell height
Select
widgets? The fix with Input to get them to be one cell high is to addborder=None
to the CSS but it doesn't seem to work forSelect
(There always appears to be an empty line at the top)?I see the excellent posting app has 1-height
Select
widget, and everything, basically :-)The text was updated successfully, but these errors were encountered: