diff --git a/CHANGELOG.md b/CHANGELOG.md index d0fe36f91b..02cbb06664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.86.1] - 2024-11-16 + +### Fixed + +- Tweaks to demo + ## [0.86.0] - 2024-11-16 ### Fixed diff --git a/pyproject.toml b/pyproject.toml index daec8095f8..32baaceca2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "textual" -version = "0.86.0" +version = "0.86.1" homepage = "https://github.com/Textualize/textual" repository = "https://github.com/Textualize/textual" documentation = "https://textual.textualize.io/" diff --git a/src/textual/demo/widgets.py b/src/textual/demo/widgets.py index d9b17bc01d..11e4b0419d 100644 --- a/src/textual/demo/widgets.py +++ b/src/textual/demo/widgets.py @@ -414,7 +414,8 @@ class Markdowns(containers.VerticalGroup): DEFAULT_CSS = """ Markdowns { #container { - border: tall transparent; + background: $boost; + border: tall transparent; height: 16; padding: 0 1; &:focus { border: tall $border; } @@ -422,7 +423,7 @@ class Markdowns(containers.VerticalGroup): } #movies { padding: 0 1; - MarkdownBlock { padding: 0 1 0 0; } + MarkdownBlock { padding: 0 1 0 0; } } } """ @@ -525,7 +526,7 @@ class Sparklines(containers.VerticalGroup): DEFAULT_CSS = """ Sparklines { Sparkline { - width: 1fr; + width: 1fr; margin: 1; &#first > .sparkline--min-color { color: $success; } &#first > .sparkline--max-color { color: $warning; } @@ -775,7 +776,7 @@ class WidgetsScreen(PageScreen): WidgetsScreen { align-horizontal: center; Markdown { background: transparent; } - #container { + & > VerticalScroll { scrollbar-gutter: stable; & > * { &:even { background: $boost; } @@ -788,7 +789,7 @@ class WidgetsScreen(PageScreen): BINDINGS = [Binding("escape", "blur", "Unfocus any focused widget", show=False)] def compose(self) -> ComposeResult: - with lazy.Reveal(containers.VerticalScroll(id="container", can_focus=True)): + with lazy.Reveal(containers.VerticalScroll(can_focus=True)): yield Markdown(WIDGETS_MD, classes="column") yield Buttons() yield Checkboxes()