mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix for auto width and relative dimensions
This commit is contained in:
@@ -16,7 +16,7 @@ class Body1(Vertical):
|
||||
|
||||
class Body2(Vertical):
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Label("I'm sorry, Dave. I'm afraid I can't do that. " * 300)
|
||||
yield Label("My God! It's full of stars! " * 300)
|
||||
|
||||
|
||||
class Good(Screen):
|
||||
@@ -52,6 +52,10 @@ class Layers(App[None]):
|
||||
background: red;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
Body2 {
|
||||
background: green;
|
||||
}
|
||||
"""
|
||||
|
||||
SCREENS = {"good": Good, "bad": Bad}
|
||||
|
||||
Reference in New Issue
Block a user