Commit Graph
318 Commits
Author SHA1 Message Date
Dermot Duffy 69ae80d6f1 fix: fit parameter should apply to entire container when aspect_ratio is not set (#2126)
* Closes #2125
2025-07-15 21:10:03 -07:00
Dermot Duffy c3e7cef9cf fix: Camera aspect-ratio should always apply (#2114)
- Closes #2073
2025-07-13 14:56:03 -07:00
Dermot Duffy 1bbc5be6fe fix: Fix issues where camera exceeded allowable width (#2096)
- Closes: #2073
2025-06-08 17:01:13 -07:00
Dermot Duffy 2b92f84665 perf: Improve performance of the carousel auto-height functionality (#2094) 2025-06-08 15:05:40 -07:00
Dermot Duffy 2971b402b7 feat: Allow grid selected border color to be overridden for theming (#2088)
- For #2047


[skip ci]
2025-06-05 20:10:41 -07:00
Dermot Duffy 5b9187f8c9 feat: Allow trigger border color to be overridden for theming (#2085)
- Closes: #2047
2025-06-04 20:39:42 -07:00
Dermot Duffy c342c5d529 fix: Fix thumbnail rendering issues (#2058)
- Closes #2054
2025-05-22 21:21:04 -07:00
Dermot Duffy c6a4c8aea2 feat: Implement basic general folder support (#2051)
- Related: #1748
2025-05-21 19:59:21 -07:00
Dermot Duffy 473ac5b947 fix: Prevent gallery overflowing onto menu (#1945)
- Closes #1937
2025-03-06 07:35:22 -08:00
Dermot Duffy 3b77b11196 fix: Increase reliability of media auto actions (e.g. play) (#1934)
Refactors media player handling entirely to make the code more
consistent and less boilerplate. Add testing for media player actions.

- Closes #1921
- Closes #1916
2025-03-03 20:59:01 -08:00
Dermot Duffy 41aa3d1f72 fix: Show underlying unavailable entity colors (#1923)
- Closes #1906
2025-02-27 20:49:54 -08:00
Dermot Duffy 0432eea4b8 feat: Add UI support for PTZ presets (#1920)
- Closes #1889

Whilst a simple change theoretically, the card has such a collection of
surfaces that can overlap other surfaces, it's challenging to get this
to work right! There's a real chance this will have broken something
z-index related (e.g. X overlaps Y when it should not), or (for related
reasons) broken curver corners on the card.
2025-02-27 20:22:12 -08:00
Dermot Duffy cc376a8be1 feat: Rename the card to advanced-camera-card (#1873)
Whilst the Frigate support in this card is the best among camera
engines, the name incorrectly suggests that Frigate is a requirement.
Instead, to broaden the appeal, change to more camera agnostic name.
This does not suggest any change in priority, role or support for
Frigate.

This change is likely to be bug prone, due to the size of the rename --
the code contains 1500+ references to "Frigate" most of which make sense
to rename, some which do not, all of which needed human assessment.

- Closes #1298


BREAKING CHANGE: References to `frigate-card` in all kinds of
configuration need to be updated to `advanced-camera-card`. An automated
config upgrade should take care of the majority of usecases (click `Edit
-> Upgrade -> Save`), though may not be perfect.
2025-02-06 19:32:32 -08:00
Dermot Duffy 596a724714 fix: Add additional troubleshooting pointers for stream load errors (#1844)
[skip ci]
2025-01-20 18:56:59 -08:00
Dermot Duffy 99fe613811 fix: Panel mode cards with "Kiosk Mode" should fill the screen (#1838)
* Closes #1762
2025-01-18 19:06:09 -08:00
Dermot Duffy 6b3736bdaf fix: Show version number with card loading spinner (#1825)
- Closes #1818

**Why add this?**: A repeated pattern is that an issue is fixed in the
card, a new build is released and users will incorrectly believe it's
not yet fixed due to their browser caching the old code. This results in
wasting their time, and my time.

**But it's obnoxious!**: I'm pretty sensitive to this (hence adding
these messages!), so let me know how terrible you find it. You can
disable it with:

```yaml
performance:
  features:
    card_loading_indicator: false
```
2025-01-12 16:26:30 -08:00
Dermot Duffy 95cda9a8cb fix: Fix card usability for users of darkreader extension (#1813) 2025-01-07 20:22:20 -08:00
Dermot Duffy 278560b5ac feat: Add richer card theme support (#1809) 2025-01-07 19:54:13 -08:00
Dermot Duffy 9d812af9f4 fix: Use HA style and coloring for all icons (#1790) 2024-12-23 15:22:27 -08:00
Dermot Duffy 86439af90e fix: Allow submenus to overflow the menu in all cases (#1768) 2024-12-16 18:51:46 -08:00
Dermot Duffy cebd4b215b fix: Render media correctly in rtl languages (#1757) 2024-12-14 14:58:22 -08:00
Dermot Duffy dc5de02e02 refactor: Rename classes internally to better support rtl languages (#1756) 2024-12-14 12:17:17 -08:00
Dermot Duffy ed0bb99a45 fix: Panel height should be 100% when casted (#1750) 2024-12-13 08:11:26 -08:00
Dermot Duffy 1992db2144 fix: Panel mode should exclude header height (#1738)
* fix: Panel mode should exclude header height

* Update docs to clarify aspect-ratio behavior in a panel
2024-12-11 20:42:05 -08:00
Dermot Duffy 216ded29f3 fix: Fix hover-card menu style (#1731)
- Closes `hover-card` menu style is broken #1721
2024-12-09 18:13:23 -08:00
Dermot Duffy 649b0280ee feat: Increase max thumbnail size to 300px (#1703)
* feat: Remove max thumbnail size

* Remove old comment.

* Set max to 350px

* Decrease max size to 300px
2024-12-08 13:03:47 -08:00
Dermot Duffy 24a6870937 fix: Allow 9:16 aspect-ratio gallery to render without a gap in Safari (#1705) 2024-12-02 22:08:54 -08:00
Dermot Duffy dada65e008 feat: Add experimental reolink media support (#1694)
* feat: Add experimental rich reolink support.

* Formatting fix
2024-11-25 20:19:12 -08:00
Dermot Duffy 7895de96d2 fix: Rationalize custom icons to avoid duplication (#1639) 2024-10-13 16:24:51 -07:00
Dermot Duffy 9ca56d061f fix: Improve media background image (#1635)
* fix: Improve media background image

* Simplify loading spinner.

This is slightly less fancy, but removes code. I'm guessing no-one will notice or care enough to raise it! (BMFW).
2024-10-12 14:31:26 -07:00
Dermot Duffy d7fa2933da fix: Show a background image in case media doesn't load (#1622) 2024-10-06 14:51:44 -07:00
Dermot Duffy 632e06b7f9 fix: Do not show menu icons on top of other unrelated HA content (#1617)
* fix: Do not show menu icons on top of other unrelated HA content

* Change z-indices to work when multiple cards are used

* Formatting
2024-10-05 11:59:43 -07:00
Dermot Duffy ff6dbba9f3 fix: Fix curved corners (again) (#1595) 2024-09-29 13:37:39 -07:00
Dermot Duffy 464a68ba03 fix: Menu should render over drawer (#1589) 2024-09-27 18:27:36 -07:00
Dermot Duffy 1bc164ecd6 fix: Menu linear background should match alignment (#1584) 2024-09-24 19:26:12 -07:00
Dermot Duffy 3576a51be1 fix: Weird menu rendering placement issue on Firefox browsers (#1572)
* fix: Weird menu rendering placement issue on Firefox browsers

* Extra encouragement for Firefox to justify correctly
2024-09-22 19:19:27 -07:00
Dermot Duffy 766f3422a9 fix: Unparseable config when using the low-performance profile (#1570)
* The `low-performance` profile itself had parse errors: fix them!
* Do not silently swallow override parse errors, they are always a user issue
* Minor error message rendering improvements to show multiple pieces of context
2024-09-22 15:08:37 -07:00
Dermot Duffy 9efa873cba fix: Menu linear gradient is the wrong direction on left/right menus (#1553)
* fix: Menu linear gradient is the wrong direction on left/right menus

Also changes the gallery scrolling logic to center the selected element vs top aligned.

* Formatting fix
2024-09-21 15:00:42 -07:00
Dermot Duffy 15d33f63fb fix: Destroy cameras after failed initialization (#1551) 2024-09-21 13:17:22 -07:00
Dermot Duffy 5481c5956c feat: Show diagnostics in yaml instead of json (#1550)
* feat: Show diagnostics in YAML instead of JSON

* Adding missing semicolon
2024-09-21 12:54:38 -07:00
Dermot Duffy b46ea36265 feat: Add loading spinner on card initialization (#1549)
* feat: Add loading spinner on card initialization

* Minor doc fix.
2024-09-20 19:39:17 -07:00
Dermot Duffy f924537025 fix: Replace max_height with height (#1539)
* fix: Replace `max_height` with `height`

BREAKING CHANGE: This entirely removes `min_height`, and replaces `max_height` with `height`. The behavior is obviously not exactly the same, but the prior behavior did not actually work correctly. CSS does not  limit the height of child elements that are `100%` of their parents height if the parent does not have an explicit height set (this caused spillage over the set max height). As such, it's simpler to just allow the user to set the actual height of the card should they need to do so, with a (hopefully) minor loss of flexibility.

* Test fixes
2024-09-15 17:29:05 -07:00
Dermot Duffy c7359188e7 Fix overlay z-index for menu . 2024-09-07 15:33:54 -07:00
Dermot Duffy 1a0e219c61 Move automatic media actions out of carousels 2024-09-07 15:04:23 -07:00
Dermot Duffy dc3ff62603 Formatting fixes. 2024-08-17 11:48:41 -07:00
Dermot Duffy 869c2f9049 Minor pointer fixes. 2024-08-17 11:40:33 -07:00
Dermot Duffy e503f0e429 Initial version of status bar. 2024-08-16 20:08:21 -07:00
Felipe Santos fccb4c9afd Bump prettier to v3 and format all files 2024-06-10 00:29:50 -03:00
Dermot Duffy 7ab545738d Add initial keyboard shortcut support. 2024-06-05 21:44:17 -07:00
Dermot Duffy 7917e5c537 Add support for pre-defined zoom/pan settings. 2024-04-27 14:55:38 -07:00