Widgets overlap #5459
Widgets overlap
#5459
-
Beta Was this translation helpful? Give feedback.
Answered by
TomJGooding
Jan 7, 2025
Replies: 1 comment 1 reply
-
The problem is that the You can add something like this to your app class if you don't want a separate CSS file: CSS = """
Input { width: 1fr; }
""" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AndyDralle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that the
Input
widget default CSS haswidth: 100%
, whereas in this layout instead we want the available width.You can add something like this to your app class if you don't want a separate CSS file:
https://textual.textualize.io/guide/styles/#fr-units