mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tweak to borders
This commit is contained in:
@@ -36,6 +36,10 @@ class BorderApp(App):
|
||||
"""Demonstrates the border styles."""
|
||||
|
||||
CSS = """
|
||||
Screen {
|
||||
align: center middle;
|
||||
overflow: auto;
|
||||
}
|
||||
#text {
|
||||
margin: 2 4;
|
||||
padding: 2 4;
|
||||
@@ -49,6 +53,7 @@ class BorderApp(App):
|
||||
def compose(self):
|
||||
yield BorderButtons()
|
||||
self.text = Label(TEXT, id="text")
|
||||
self.text.shrink = True
|
||||
yield self.text
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
|
||||
Reference in New Issue
Block a user