Skip to content

Commit 18ba741

Browse files
committed
fix demo
1 parent 5a738fa commit 18ba741

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [0.86.1] - 2024-11-16
9+
10+
### Fixed
11+
12+
- Tweaks to demo
13+
814
## [0.86.0] - 2024-11-16
915

1016
### Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "0.86.0"
3+
version = "0.86.1"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/demo/widgets.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,16 @@ class Markdowns(containers.VerticalGroup):
414414
DEFAULT_CSS = """
415415
Markdowns {
416416
#container {
417-
border: tall transparent;
417+
background: $boost;
418+
border: tall transparent;
418419
height: 16;
419420
padding: 0 1;
420421
&:focus { border: tall $border; }
421422
&.-maximized { height: 1fr; }
422423
}
423424
#movies {
424425
padding: 0 1;
425-
MarkdownBlock { padding: 0 1 0 0; }
426+
MarkdownBlock { padding: 0 1 0 0; }
426427
}
427428
}
428429
"""
@@ -525,7 +526,7 @@ class Sparklines(containers.VerticalGroup):
525526
DEFAULT_CSS = """
526527
Sparklines {
527528
Sparkline {
528-
width: 1fr;
529+
width: 1fr;
529530
margin: 1;
530531
&#first > .sparkline--min-color { color: $success; }
531532
&#first > .sparkline--max-color { color: $warning; }
@@ -775,7 +776,7 @@ class WidgetsScreen(PageScreen):
775776
WidgetsScreen {
776777
align-horizontal: center;
777778
Markdown { background: transparent; }
778-
#container {
779+
& > VerticalScroll {
779780
scrollbar-gutter: stable;
780781
& > * {
781782
&:even { background: $boost; }
@@ -788,7 +789,7 @@ class WidgetsScreen(PageScreen):
788789
BINDINGS = [Binding("escape", "blur", "Unfocus any focused widget", show=False)]
789790

790791
def compose(self) -> ComposeResult:
791-
with lazy.Reveal(containers.VerticalScroll(id="container", can_focus=True)):
792+
with lazy.Reveal(containers.VerticalScroll(can_focus=True)):
792793
yield Markdown(WIDGETS_MD, classes="column")
793794
yield Buttons()
794795
yield Checkboxes()

0 commit comments

Comments
 (0)