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 2, 2024
1 parent eab5bf2 commit 39ef4db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions dist/weather-chart-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -17828,7 +17828,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {
show_visibility: false,
show_last_changed: false,
use_12hour_format: false,
icons_size: '25',
icons_size: '40',
animated_icons: false,
icon_style: 'style1',
autoscroll: false,
Expand Down Expand Up @@ -17868,7 +17868,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {

setConfig(config) {
const cardConfig = {
icons_size: 25,
icons_size: 40,
animated_icons: false,
icon_style: 'style1',
current_temp_size: 28,
Expand Down Expand Up @@ -18617,8 +18617,8 @@ updateChart({ forecasts, forecastChart } = this) {
color: var(--paper-item-icon-color);
}
img {
width: ${config.icons_size}px;
height: ${config.icons_size}px;
width: ${config.icons_size}px !important;
height: ${config.icons_size}px !important;
}
.card {
padding-top: ${config.title ? '0px' : '16px'};
Expand All @@ -18629,7 +18629,7 @@ updateChart({ forecasts, forecastChart } = this) {
.main {
display: flex;
align-items: center;
font-size: ${config.current_temp_size}px;
font-size: ${config.current_temp_size}px !important;
margin-bottom: 10px;
}
.main ha-icon {
Expand All @@ -18639,8 +18639,8 @@ updateChart({ forecasts, forecastChart } = this) {
margin-inline-end: 14px;
}
.main img {
width: ${config.icons_size * 2}px;
height: ${config.icons_size * 2}px;
width: ${config.icons_size * 2}px !important;
height: ${config.icons_size * 2}px !important;
margin-right: 14px;
margin-inline-start: initial;
margin-inline-end: 14px;
Expand Down
14 changes: 7 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {
show_visibility: false,
show_last_changed: false,
use_12hour_format: false,
icons_size: '25',
icons_size: '40',
animated_icons: false,
icon_style: 'style1',
autoscroll: false,
Expand Down Expand Up @@ -85,7 +85,7 @@ static getStubConfig(hass, unusedEntities, allEntities) {

setConfig(config) {
const cardConfig = {
icons_size: 25,
icons_size: 40,
animated_icons: false,
icon_style: 'style1',
current_temp_size: 28,
Expand Down Expand Up @@ -834,8 +834,8 @@ updateChart({ forecasts, forecastChart } = this) {
color: var(--paper-item-icon-color);
}
img {
width: ${config.icons_size}px;
height: ${config.icons_size}px;
width: ${config.icons_size}px !important;
height: ${config.icons_size}px !important;
}
.card {
padding-top: ${config.title ? '0px' : '16px'};
Expand All @@ -846,7 +846,7 @@ updateChart({ forecasts, forecastChart } = this) {
.main {
display: flex;
align-items: center;
font-size: ${config.current_temp_size}px;
font-size: ${config.current_temp_size}px !important;
margin-bottom: 10px;
}
.main ha-icon {
Expand All @@ -856,8 +856,8 @@ updateChart({ forecasts, forecastChart } = this) {
margin-inline-end: 14px;
}
.main img {
width: ${config.icons_size * 2}px;
height: ${config.icons_size * 2}px;
width: ${config.icons_size * 2}px !important;
height: ${config.icons_size * 2}px !important;
margin-right: 14px;
margin-inline-start: initial;
margin-inline-end: 14px;
Expand Down

0 comments on commit 39ef4db

Please sign in to comment.