Skip to content

Center the card title - #32

Open
fdegros wants to merge 1 commit into
pjkundert:masterfrom
fdegros:center-card-title
Open

fdegros wants to merge 1 commit into
pjkundert:masterfrom
fdegros:center-card-title

Conversation

@fdegros

@fdegros fdegros commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

The title of each SLIP-39 card (eg. "SLIP39 Family (1 of 4) for Alice") is left-aligned on both the front and the back of the card, while the "Recover w/ ..." line below it is centered. This centers the title; the front and back share the same template element, so one change covers both.

  • Change: slip39/layout/components.py, align='C' on card-title.
  • Test: test_card_title_centered in slip39/output_test.py.
  • pytest (without the invoice/communications tests): 42 passed, 4 skipped; recovery_test.py::test_dft_smoke fails on Python 3.14 when numpy isn't installed (the pure-Python idft fallback), with or without this change.

This one is purely cosmetic; happy to drop it if you prefer the current look.

The title of each SLIP-39 card (eg. "SLIP39 Family (1 of 4) for Alice") was left-aligned
on both the front and the back of the card, while the "Recover w/ ..." line below it
is centered.  Center the title; the front and back share the same template element.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant