+ ${!config?.hide_pan_tilt
+ ? html`
+ ${renderIcon(
+ 'right',
+ 'mdi:arrow-right',
+ this._controller.getPTZActions('right'),
+ )}
+ ${renderIcon(
+ 'left',
+ 'mdi:arrow-left',
+ this._controller.getPTZActions('left'),
+ )}
+ ${renderIcon('up', 'mdi:arrow-up', this._controller.getPTZActions('up'))}
+ ${renderIcon(
+ 'down',
+ 'mdi:arrow-down',
+ this._controller.getPTZActions('down'),
+ )}
+
`
+ : ''}
+ ${!config?.hide_zoom && (actionsZoomIn || actionsZoomOut)
+ ? html`
+ ${renderIcon('zoom_in', 'mdi:plus', actionsZoomIn)}
+ ${renderIcon('zoom_out', 'mdi:minus', actionsZoomOut)}
+
`
+ : html``}
+ ${!config?.hide_home && actionsHome
+ ? html`
+
${renderIcon('home', 'mdi:home', actionsHome)}
+ `
+ : html``}
+
`;
+ }
+
+ static get styles(): CSSResultGroup {
+ return unsafeCSS(ptzStyle);
+ }
+}
+
+declare global {
+ interface HTMLElementTagNameMap {
+ 'frigate-card-ptz': FrigateCardPTZ;
+ }
+}
diff --git a/src/components/surround.ts b/src/components/surround.ts
index e2efa85f..853f1a92 100644
--- a/src/components/surround.ts
+++ b/src/components/surround.ts
@@ -16,7 +16,6 @@ import {
import basicBlockStyle from '../scss/basic-block.scss';
import { ClipsOrSnapshotsOrAll, ExtendedHomeAssistant } from '../types.js';
import { contentsChanged, dispatchFrigateCardEvent } from '../utils/basic.js';
-import { getAllDependentCameras } from '../utils/camera.js';
import { changeViewToRecentEventsForCameraAndDependents } from '../utils/media-to-view';
import { View } from '../view/view.js';
import './surround-basic.js';
@@ -140,7 +139,8 @@ export class FrigateCardSurround extends LitElement {
if (this.view?.is('live')) {
return this.view.isGrid()
? this.cameraManager?.getStore().getVisibleCameraIDs() ?? null
- : getAllDependentCameras(this.cameraManager, this.view.camera);
+ : this.cameraManager?.getStore().getAllDependentCameras(this.view.camera) ??
+ null;
}
if (this.view.isViewerView()) {
return this.view.query?.getQueryCameraIDs() ?? null;
diff --git a/src/components/thumbnail-carousel.ts b/src/components/thumbnail-carousel.ts
index 6ab71228..3237464e 100644
--- a/src/components/thumbnail-carousel.ts
+++ b/src/components/thumbnail-carousel.ts
@@ -15,6 +15,7 @@ import { ExtendedHomeAssistant } from '../types.js';
import { stopEventFromActivatingCardWideActions } from '../utils/action.js';
import { dispatchFrigateCardEvent } from '../utils/basic.js';
import { CarouselDirection } from '../utils/embla/carousel-controller.js';
+import AutoSize from '../utils/embla/plugins/auto-size/auto-size.js';
import { MediaQueriesResults } from '../view/media-queries-results';
import { View } from '../view/view.js';
import './carousel.js';
@@ -136,6 +137,7 @@ export class FrigateCardThumbnailCarousel extends LitElement {
return html`