Skip to content

Commit

Permalink
Merge pull request #58 from DanteWinters/develop
Browse files Browse the repository at this point in the history
Fix formatting for individual PV values
  • Loading branch information
DanteWinters authored Aug 4, 2024
2 parents 1de4178 + 4a71387 commit e23f854
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions html-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export function generateStyles(config) {
padding-top: 1.5px;
padding-bottom: 1.5px;
}
.pv-main-text {
font-size: min(4vw, 1em);
font-weight: bold;
}
/* IMAGE CELLS */
.image-cell img {
Expand Down
2 changes: 1 addition & 1 deletion lux-power-distribution-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class LuxPowerDistributionCard extends HTMLElement {
let sol_text = "";
let pv_values = cef.getIndividualPvValues(this._config, this._hass, index);
for (let i = 0; i < pv_values.length; i++) {
sol_text += `<p><text class="sub-text">${i + 1}:</text> <text class="header-text">${pv_values[i]}</text></p>`;
sol_text += `<text class="pv-main-text">${pv_values[i]}</text>\n`;
}
solar_info_element.innerHTML = `
<div>
Expand Down

0 comments on commit e23f854

Please sign in to comment.