Replies: 1 comment
-
|
Yeah, this is expected, and it comes down to Give Input the same class Sample(App):
CSS = """
Input { width: 1fr; }
"""Now Select, Input, and Button all share the row, and the Button keeps its 16-cell On auto-sizing Select to its content: there's no content-based width for it out of the box, so set an explicit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
with this code I'd expect all the widgets to show:
Instead, it looks like this:

I guess
Selectcan be squished because by default it's hard to determine what its width should be (maybe it could be calculated to show at least the prompt?). But I wouldn't have expected theButtonto disappear, especially sinceSelectbehaves similar in that it expands by default as well but it leaves space for theButton🤔Is this expected behavior? If so, what CSS could I apply, so that the
Buttongets its space? And is there any way to auto-resize theSelectaccording to its content?Thank you! 🙏
Beta Was this translation helpful? Give feedback.
All reactions