wrong place

This commit is contained in:
Will McGugan
2022-09-13 14:56:28 +01:00
parent 7c95a0e75a
commit f8f20a0aee
2 changed files with 0 additions and 38 deletions

View File

@@ -1,21 +0,0 @@
Screen {
layout: center;
}
#parent {
width: 32;
height: 8;
background: $panel;
}
#tag {
color: $text;
background: $success;
padding: 1 2;
width: auto;
/* offset: -8 -4; */
}
#child {
background: red;
}

View File

@@ -1,17 +0,0 @@
from textual import layout
from textual.app import App, ComposeResult
from textual.widgets import Static
class OffsetExample(App):
def compose(self) -> ComposeResult:
yield layout.Vertical(
Static("Child", id="child"),
id="parent"
)
yield Static("Tag", id="tag")
app = OffsetExample(css_path="offset.css")
if __name__ == "__main__":
app.run()