Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/codex32_gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def do_activate(self) -> None:
)
view = Adw.NavigationView()
view.push(pages.home(view))
window = Adw.ApplicationWindow(
application=self, title="codex32", default_width=880, default_height=620, content=view
)
window = Adw.ApplicationWindow(application=self, title="codex32", default_width=880, content=view)
Comment thread
BenWestgate marked this conversation as resolved.
window.present()


Expand Down
4 changes: 3 additions & 1 deletion src/codex32_gui/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ def _page(
*,
actions: Gtk.Widget | None = None,
can_pop: bool = True,
natural_height: bool = False,
) -> Adw.NavigationPage:
scroller = Gtk.ScrolledWindow(hscrollbar_policy=Gtk.PolicyType.NEVER, vexpand=True)
scroller.set_propagate_natural_height(natural_height)
scroller.set_child(Adw.Clamp(maximum_size=700, child=content, margin_start=18, margin_end=18))
bars = Adw.ToolbarView()
bars.add_top_bar(Adw.HeaderBar())
Expand Down Expand Up @@ -400,7 +402,7 @@ def home(view: Adw.NavigationView) -> Adw.NavigationPage:
group,
_note("Everything happens on this computer. codex32 never connects to the internet."),
)
return _page("codex32", content)
return _page("codex32", content, natural_height=True)


# --- Bitcoin Core preflight ------------------------------------------------
Expand Down
Loading