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:
1 parent
b2b7a0853c
commit
649b0280ee
10 files changed
+16
-21
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user