Skip to content

Commit 73f2378

Browse files
authored
Update predbat-table-card.js
updating row heights to be more compact
1 parent 4d2bb49 commit 73f2378

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

predbat-table-card.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,14 @@ class PredbatTableCard extends HTMLElement {
237237

238238
if(theItem.value.replace(/\s/g, '').length > 0){
239239

240-
newCell.innerHTML = `<div class="iconContainer"><svg version="1.1" width="42" height="42" id="limitSVG">
241-
<circle cx="21" cy="21" r="14" stroke="#2a3240" stroke-width="2" fill="#e1e1e1"/>
242-
<text class="pill" x="21" y="22" dominant-baseline="middle" text-anchor="middle" fill="#2a3240" font-size="11"} font-weight="bold">${theItem.value}</text>
243-
</svg></div>`;
240+
newCell.innerHTML = `
241+
242+
<div class="iconContainer">
243+
<svg version="1.1" width="34" height="34" id="limitSVG">
244+
<circle cx="17" cy="17" r="11" stroke="#2a3240" stroke-width="2" fill="#e1e1e1"/>
245+
<text class="pill" x="17" y="18" dominant-baseline="middle" text-anchor="middle" fill="#2a3240" font-size="10"} font-weight="bold">${theItem.value}</text>
246+
</svg>
247+
</div>`;
244248

245249
}
246250

@@ -580,7 +584,7 @@ class PredbatTableCard extends HTMLElement {
580584
let tableWidth = 100;
581585
let oddColour;
582586
let evenColour;
583-
let maxHeight = "42px";
587+
let maxHeight = "30px";
584588
let tableHeaderFontColour;
585589
let tableHeaderBackgroundColour;
586590
let tableHeaderColumnsBackgroundColour;

0 commit comments

Comments
 (0)