Add missing wrap-preview CSS to OptionListScreen and pass parameter through SelectMenu
This commit is contained in:
parent
89329380a5
commit
8708dce09b
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -200,6 +200,11 @@ class OptionListScreen(BaseScreen[ValueT]):
|
|||
color: white;
|
||||
text-style: bold;
|
||||
}
|
||||
|
||||
.wrap-preview {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
|
|
|||
Loading…
Reference in New Issue