mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
17 lines
446 B
Python
17 lines
446 B
Python
from textual.app import App
|
|
from textual.containers import Vertical
|
|
from textual.widgets import Placeholder
|
|
|
|
|
|
class MinWidthApp(App):
|
|
def compose(self):
|
|
yield Vertical(
|
|
Placeholder("min-width: 25%", id="p1"),
|
|
Placeholder("min-width: 75%", id="p2"),
|
|
Placeholder("min-width: 100", id="p3"),
|
|
Placeholder("min-width: 400h", id="p4"),
|
|
)
|
|
|
|
|
|
app = MinWidthApp(css_path="min_width.css")
|