Skip to content

Commit

Permalink
Sets aspect_ratio default value to auto.
Browse files Browse the repository at this point in the history
Using `auto` as a default value for `aspect_ratio` instead of  `1.9` as it seems a better fit for most cases.
  • Loading branch information
luixal authored Jan 26, 2025
1 parent a64116e commit db3ebff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media-source-image-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db3ebff

Please sign in to comment.