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
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Changelog

## v1.2.6 — 2026-07-19
## v1.2.7 — 2026-07-24

### Fixed
- **The detail modal no longer collapses to a strip of padding in Chrome and
the Home Assistant companion app.** The `.modal-card` was capped with
`max-height: calc(100vh - 48px)`, which the card build rewrites to
`calc(100cqh - 48px)`. When Home Assistant lays the card out with an
*indefinite* height (masonry / content-sized slots), Blink resolves the
container-query height `100cqh` to `0`, so the cap became `calc(0 - 48px)` →
clamped to `0` and the modal shrank to just its padding. Firefox and Safari
resolved the unit against the rendered height, so they were unaffected. The
cap is now `max-height: 100%` against the `inset:0` overlay (whose height is
always definite), which equals the old value on a normal viewport but never
collapses. Fixes #58.

### Added
- **64 Australian species.** Generated kachō-e illustrations (128 renders,
Expand Down
4 changes: 2 additions & 2 deletions dist/habird-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion homeassistant/card/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const wrapper = `
// you copied the artwork locally (homeassistant/install.sh layout).
var HABIRD_CDN_ASSETS = 'https://cdn.jsdelivr.net/gh/adamoberley/HABirdDashboard@HABirdDashboard/avian/assets/';

var HABIRD_VERSION = '1.2.6';
var HABIRD_VERSION = '1.2.7';

var HABIRD_EDITOR_SCHEMA = [
{ name: 'dashboard', type: 'expandable', flatten: true, title: 'Dashboard', expanded: true, schema: [
Expand Down
10 changes: 9 additions & 1 deletion homeassistant/www/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,15 @@
}
.modal-card {
position: relative;
max-width: 920px; max-height: calc(100vh - 48px);
/* Cap to the overlay, NOT the viewport. #detail-modal is inset:0 with
24px padding, so 100% here == its content box == the old
calc(100vh - 48px) on a normal viewport - but robustly. In the card
build 100vh becomes 100cqh, and when Home Assistant gives the card an
indefinite height (masonry / content-sized slots) Blink resolves cqh
to 0, so calc(100cqh - 48px) collapsed to 0 and the modal shrank to a
strip of padding (Chrome / HA companion WebView only; Firefox & Safari
resolved it fine). % of the definite inset:0 overlay sidesteps that. */
max-width: 920px; max-height: 100%;
width: 100%;
background: var(--paper);
border-radius: 14px;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "habird-dashboard",
"version": "1.2.6",
"version": "1.2.7",
"private": true,
"description": "Bird Card - a live bird collage card for Home Assistant, fed by BirdNET-Go",
"license": "CC-BY-NC-SA-4.0",
Expand Down
Loading