Skip to content

ux: auto-size card, fix default font 404, add getGridOptions#42

Open
genebean wants to merge 1 commit into
malcolmrigg:masterfrom
genebean:pr/ux-and-defaults
Open

ux: auto-size card, fix default font 404, add getGridOptions#42
genebean wants to merge 1 commit into
malcolmrigg:masterfrom
genebean:pr/ux-and-defaults

Conversation

@genebean

@genebean genebean commented Jun 5, 2026

Copy link
Copy Markdown

I really like this card but the bugs were bothering me so I got Claude Code to help me make things better. This is the third of a set of 3 PRs that when combined are what I am now using at home. The first one is #40 and the second is #41

  • Default width changed from 500 to 0 (auto); when width is not set the card fills its column width as a square, so it works in any layout without requiring a pixel value in the config
  • @font-face is now only injected when the user provides a fontface config value; the previous default loaded ITCBLKAD.TTF from /local/ which produces a 404 for anyone who hasn't placed that file manually
  • Default font changed to "Palatino Linotype, Palatino, Book Antiqua, serif" — a widely available system serif with a classic feel that suits the wizard theme without requiring a custom font file
  • Add getGridOptions() so the card behaves correctly in the HA sections (grid) layout, reserving the right number of rows for its square shape
  • Update getCardSize() to handle the auto-size case (falls back to availableWidth when configuredWidth is 0)

- Default width changed from 500 to 0 (auto); when width is not set the
  card fills its column width as a square, so it works in any layout
  without requiring a pixel value in the config
- @font-face is now only injected when the user provides a fontface config
  value; the previous default loaded ITCBLKAD.TTF from /local/ which
  produces a 404 for anyone who hasn't placed that file manually
- Default font changed to "Palatino Linotype, Palatino, Book Antiqua,
  serif" — a widely available system serif with a classic feel that suits
  the wizard theme without requiring a custom font file
- Add getGridOptions() so the card behaves correctly in the HA sections
  (grid) layout, reserving the right number of rows for its square shape
- Update getCardSize() to handle the auto-size case (falls back to
  availableWidth when configuredWidth is 0)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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