@@ -120,14 +120,14 @@ class SolarFlowCard extends HTMLElement {
120120 _statButton ( entityId , label , color , icon ) {
121121 const val = this . _fmtStat ( entityId ) ;
122122 const C = color ;
123- const sc = this . _config . font_scale || 1 ;
124- const sz = Math . round ( 16 * sc ) ;
125123 return `
126124 <div class="stat-btn" style="border-color:${ C } ;background:${ C } 14;">
127125 <div class="stat-shimmer" style="background:linear-gradient(90deg,transparent,${ C } 80,transparent)"></div>
128- <svg viewBox="0 0 24 24" width="14" height="14" style="flex-shrink:0"><path d="${ icon } " fill="${ C } "/></svg>
129- <div class="stat-val" style="color:${ C } ">${ val } </div>
130- <div class="stat-lbl">${ label } </div>
126+ <svg viewBox="0 0 24 24" width="28" height="28" style="flex-shrink:0"><path d="${ icon } " fill="${ C } "/></svg>
127+ <div class="stat-text">
128+ <div class="stat-val" style="color:${ C } ">${ val } </div>
129+ <div class="stat-lbl">${ label } </div>
130+ </div>
131131 </div>
132132 ` ;
133133 }
@@ -244,17 +244,18 @@ class SolarFlowCard extends HTMLElement {
244244 .stats{padding:3px 3px 5px;display:flex;flex-direction:column;gap:3px;background:rgba(0,0,0,0.3);}
245245 .stats-row{display:flex;gap:3px;}
246246 .stat-btn{
247- flex:1;border-radius:8px ;border:1px solid;
248- padding:6px 3px 5px ;display:flex;flex-direction:column ;
249- align-items:center;justify-content:center; gap:3px ;position:relative;overflow:hidden;
250- box-sizing:border-box;min-width:0;min- height:70px ;
247+ flex:1;border-radius:12px ;border:1px solid;
248+ padding:6px 6px 6px 14px ;display:flex;flex-direction:row ;
249+ align-items:center;gap:8px ;position:relative;overflow:hidden;
250+ box-sizing:border-box;min-width:0;height:80px ;
251251 }
252+ .stat-text{display:flex;flex-direction:column;gap:2px;min-width:0;}
252253 .stat-shimmer{
253254 position:absolute;top:0;left:0;right:0;height:1px;
254255 animation:shimmer 2.5s linear infinite;pointer-events:none;
255256 }
256- .stat-val{font-size:${ 0.7 * sc } em;font-weight:700;font-family:var(--primary-font-family,sans-serif);text-align:center; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100% ;}
257- .stat-lbl{font-size:${ 0.58 * sc } em;color:rgba(255,255,255,0.65 );font-family:var(--primary-font-family,sans-serif);text-align:center; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100% ;}
257+ .stat-val{font-size:${ 0.82 * sc } em;font-weight:700;font-family:var(--primary-font-family,sans-serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
258+ .stat-lbl{font-size:${ 0.72 * sc } em;color:rgba(255,255,255,0.7 );font-family:var(--primary-font-family,sans-serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
258259 </style>
259260 <div class="wrap">
260261 <div class="flow">
0 commit comments