Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-07-31 | 1.1 kB | |
The empty inside release source code.tar.gz | 2025-07-31 | 30.1 MB | |
The empty inside release source code.zip | 2025-07-31 | 31.3 MB | |
Totals: 3 Items | 61.4 MB | 0 |
This release adds an :empty
pseudo-class which matches widgets with no children. You could use this to hide a container that doesn't have any children, for example:
:::css
.container:empty {
display: none;
}
Also in this release, support for scrolling left and right via the trackpad or a mouse that supports it. This was a contribution from @fancidev
Full changes below:
[5.1.0] - 2025-07-31
Added
- Added
empty
pseudo class, which applies when a widget has no displayed children https://github.com/Textualize/textual/pull/5999 - Added
Screen.action_focus
https://github.com/Textualize/textual/pull/5999 - Added support for left and right mouse scroll for terminals and input devices which support it https://github.com/Textualize/textual/pull/5995
Changed
last-child
,last-of-type
,first-child
, andfirst-of-type
apply to displayed children only https://github.com/Textualize/textual/pull/5999textual.compose
is now public https://github.com/Textualize/textual/pull/5999