mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
container refactor (#2377)
* container refactor * Rearrange css * changelog * try timer updates * force update * sleep idle * Restore updates
This commit is contained in:
@@ -8,7 +8,7 @@ except ImportError:
|
||||
|
||||
from textual import work
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.containers import Content
|
||||
from textual.containers import VerticalScroll
|
||||
from textual.widgets import Input, Markdown
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class DictionaryApp(App):
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Input(placeholder="Search for a word")
|
||||
with Content(id="results-container"):
|
||||
with VerticalScroll(id="results-container"):
|
||||
yield Markdown(id="results")
|
||||
|
||||
def on_mount(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user