Skip to content

Commit

Permalink
fix(jans-cli-tui): ScrollablePane for config-api main screen (#10722)
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
devrimyatar authored Jan 23, 2025
1 parent 71fbcb7 commit 4585f3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jans-cli-tui/cli_tui/plugins/140_config_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from functools import partial

import prompt_toolkit
from prompt_toolkit.layout import ScrollablePane
from prompt_toolkit.layout.containers import HSplit, DynamicContainer, VSplit, Window, HorizontalAlign
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit.layout.dimension import D
Expand Down Expand Up @@ -99,7 +100,7 @@ def do_add_acr(dialog):
add_handler=add_acr_validation
)

self.tabs['main_'] = HSplit([
self.tabs['main_'] = ScrollablePane(content=HSplit([

self.app.getTitledText(
_("Maximum Number of Result Per Page"),
Expand Down Expand Up @@ -204,6 +205,7 @@ def do_add_acr(dialog):
],
width=D(),
)
, height=D(), display_arrows=False, show_scrollbar=True)

self.agama_configuration_mandatory_attributes_widget = JansLabelWidget(
title = _("Mandatory Attributes"),
Expand Down

0 comments on commit 4585f3a

Please sign in to comment.