Update textual to 0.31.0

DataTable now has `max-height: 100%` by default, which breaks my layout.
This commit is contained in:
Isaiah Odhner 2023-09-17 00:35:51 -04:00
parent 938a320391
commit 3944a6e404
3 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@ pyperclip==1.8.2
pyxdg==0.28 # xdg module, used for wallpaper setting; optional, falls back to ~/.config
rich==13.3.5
stransi==0.3.0
textual==0.30.0
textual==0.31.0
textual-dev==1.0.0 # for development (`textual` CLI)
watchdog==3.0.0 # for development; optional (only used when --restart-on-changes is passed)
types-Pillow==10.0.0.1 # for development

View File

@ -262,6 +262,9 @@ FileDialogWindow .window_content Button {
CharacterSelectorDialogWindow DataTable {
width: auto;
/* textual 0.31.0 adds `max-height: 100%` to DataTable */
/* `unset` is not supported */
max-height: 10000;
}
CharacterSelectorDialogWindow .ok,
CharacterSelectorDialogWindow .cancel {

View File

@ -1447,7 +1447,7 @@ Columns: {len(self.palette) // 2}
"""Center the image as the wallpaper."""
self.set_as_wallpaper(tiled=False)
# worker thread helps keep the UI responsive
@work(exclusive=True)
@work(exclusive=True, thread=True)
def set_as_wallpaper(self, tiled: bool) -> None:
"""Set the image as the wallpaper."""
try: