Skip to content

Commit

Permalink
Fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mlamberts78 committed Oct 3, 2024
1 parent 2d8fa76 commit 64b1b6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/weather-chart-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -17867,6 +17867,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {

setConfig(config) {
const cardConfig = {
icons_size: 25,
animated_icons: false,
icon_style: 'style1',
current_temp_size: 28,
Expand Down Expand Up @@ -18637,8 +18638,8 @@ updateChart({ forecasts, forecastChart } = this) {
margin-inline-end: 14px;
}
.main img {
width: ${config.icons_size ? config.icons_size * 2 : 500}px;
height: ${config.icons_size ? config.icons_size * 2 : 500}px;
width: ${config.icons_size ? config.icons_size * 2 : 50}px;
height: ${config.icons_size ? config.icons_size * 2 : 50}px;
margin-right: 14px;
margin-inline-start: initial;
margin-inline-end: 14px;
Expand Down
5 changes: 3 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {

setConfig(config) {
const cardConfig = {
icons_size: 25,
animated_icons: false,
icon_style: 'style1',
current_temp_size: 28,
Expand Down Expand Up @@ -854,8 +855,8 @@ updateChart({ forecasts, forecastChart } = this) {
margin-inline-end: 14px;
}
.main img {
width: ${config.icons_size ? config.icons_size * 2 : 500}px;
height: ${config.icons_size ? config.icons_size * 2 : 500}px;
width: ${config.icons_size ? config.icons_size * 2 : 50}px;
height: ${config.icons_size ? config.icons_size * 2 : 50}px;
margin-right: 14px;
margin-inline-start: initial;
margin-inline-end: 14px;
Expand Down

0 comments on commit 64b1b6b

Please sign in to comment.