mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
added overflow to CSS
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#uber1 {
|
||||
/* border: heavy green; */
|
||||
layout: horizontal;
|
||||
text: on green;
|
||||
layout: vertical;
|
||||
text: on dark_green;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.list-item {
|
||||
@@ -9,18 +10,17 @@
|
||||
|
||||
/* height: 8; */
|
||||
margin: 1 2;
|
||||
text: on dark_blue;
|
||||
}
|
||||
|
||||
#child1 {
|
||||
text: on blue;
|
||||
}
|
||||
|
||||
#child2 {
|
||||
text: on magenta;
|
||||
}
|
||||
|
||||
#uber2 {
|
||||
/* #uber2 {
|
||||
margin: 3;
|
||||
layout: dock;
|
||||
docks: _default=left;
|
||||
}
|
||||
} */
|
||||
|
||||
@@ -20,7 +20,12 @@ class BasicApp(App):
|
||||
self.mount(
|
||||
uber1=Widget(
|
||||
Placeholder(id="child1", classes={"list-item"}),
|
||||
Widget(id="child2", classes={"list-item"}),
|
||||
Placeholder(id="child2", classes={"list-item"}),
|
||||
Placeholder(id="child3", classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
# Placeholder(id="child3", classes={"list-item"}),
|
||||
),
|
||||
# uber2=uber2,
|
||||
|
||||
Reference in New Issue
Block a user