From db3ebff913c208375a19da68ced40bffbad31f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Alberto=20P=C3=A9rez=20Garc=C3=ADa?= Date: Sun, 26 Jan 2025 12:17:42 +0100 Subject: [PATCH] Sets aspect_ratio default value to auto. Using `auto` as a default value for `aspect_ratio` instead of `1.9` as it seems a better fit for most cases. --- media-source-image-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-source-image-card.js b/media-source-image-card.js index 6bac930..c886288 100644 --- a/media-source-image-card.js +++ b/media-source-image-card.js @@ -13,7 +13,7 @@ class MediaSourceImageCard extends HTMLElement { ha-card { overflow: hidden; height: 100%; - aspect-ratio: ${this.config.aspect_ratio ? this.config.aspect_ratio : '1.9'}; + aspect-ratio: ${this.config.aspect_ratio ? this.config.aspect_ratio : 'auto'}; display: flex; align-content: center; justify-content: center;