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
This commit is contained in:
Dermot Duffy
2024-12-08 13:03:47 -08:00
committed by GitHub
parent b2b7a0853c
commit 649b0280ee
10 changed files with 16 additions and 21 deletions
+1 -6
View File
@@ -16,7 +16,6 @@ import {
CardWideConfig,
frigateCardConfigDefaults,
GalleryConfig,
THUMBNAIL_WIDTH_MAX,
} from '../config/types';
import { localize } from '../localize/localize';
import galleryCoreStyle from '../scss/gallery-core.scss';
@@ -266,11 +265,7 @@ export class FrigateCardGalleryCore extends LitElement {
frigateCardConfigDefaults.media_gallery.controls.thumbnails.size;
const columns = this.galleryConfig?.controls.thumbnails.show_details
? Math.max(1, Math.floor(this.clientWidth / THUMBNAIL_DETAILS_WIDTH_MIN))
: Math.max(
1,
Math.ceil(this.clientWidth / THUMBNAIL_WIDTH_MAX),
Math.ceil(this.clientWidth / thumbnailSize),
);
: Math.max(1, Math.ceil(this.clientWidth / thumbnailSize));
this.style.setProperty('--frigate-card-gallery-columns', String(columns));
}