mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix reference for layout.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
height: auto;
|
||||
}
|
||||
|
||||
Static {
|
||||
Label {
|
||||
margin: 1;
|
||||
width: 12;
|
||||
color: black;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
from textual.app import App
|
||||
from textual.containers import Container
|
||||
from textual.widgets import Static
|
||||
from textual.widgets import Label
|
||||
|
||||
|
||||
class LayoutApp(App):
|
||||
def compose(self):
|
||||
yield Container(
|
||||
Static("Layout"),
|
||||
Static("Is"),
|
||||
Static("Vertical"),
|
||||
Label("Layout"),
|
||||
Label("Is"),
|
||||
Label("Vertical"),
|
||||
id="vertical-layout",
|
||||
)
|
||||
yield Container(
|
||||
Static("Layout"),
|
||||
Static("Is"),
|
||||
Static("Horizontal"),
|
||||
Label("Layout"),
|
||||
Label("Is"),
|
||||
Label("Horizontal"),
|
||||
id="horizontal-layout",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user