Add missing wrap-preview CSS to OptionListScreen and pass parameter through SelectMenu

This commit is contained in:
Softer 2026-05-06 15:57:02 +03:00
parent 89329380a5
commit 8708dce09b
2 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class Selection[ValueT]:
allow_reset=self._allow_reset,
preview_location=self._preview_location,
enable_filter=self._enable_filter,
wrap_preview=self._wrap_preview,
).run()
if result.type_ == ResultType.Reset:

View File

@ -200,6 +200,11 @@ class OptionListScreen(BaseScreen[ValueT]):
color: white;
text-style: bold;
}
.wrap-preview {
width: 100%;
height: auto;
}
"""
def __init__(