Commit da2d09c
v0.2.7 — card height matches content, no empty space
Remove height:100% from :host and ha-card, and flex:1 from
grid-wrapper. Card now auto-sizes to its content so trimmed grids
with few rooms don't leave large empty areas. Canvas fills wrapper
width via ResizeObserver; aspect-ratio CSS drives the height.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent acc4227 commit da2d09c
3 files changed
Lines changed: 12 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
133 | | - | |
134 | 130 | | |
135 | 131 | | |
136 | 132 | | |
| |||
522 | 518 | | |
523 | 519 | | |
524 | 520 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | 521 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
539 | 526 | | |
540 | 527 | | |
541 | 528 | | |
| |||
0 commit comments