mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* Add viewport units snapshot test * Fix snapshot app * Update snapshots * Update DataTable max-height to 100% * Update CHANGELOG.md * Remove max height from DataTable CSS
15 lines
325 B
Python
15 lines
325 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
|
|
class ViewportUnits(App):
|
|
CSS = """Static {width: 100vw; height: 100vh; border: solid cyan;} """
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Static("Hello, world!")
|
|
|
|
|
|
app = ViewportUnits()
|
|
if __name__ == '__main__':
|
|
app.run()
|