ux: auto-size card, fix default font 404, add getGridOptions#42
Open
genebean wants to merge 1 commit into
Open
ux: auto-size card, fix default font 404, add getGridOptions#42genebean wants to merge 1 commit into
genebean wants to merge 1 commit into
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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