Skip to content

Commit 331ee33

Browse files
author
=
committed
Refine basic power flow alignment
1 parent 8ad3d7a commit 331ee33

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/predbat/frontend.zip‎

38 Bytes
Binary file not shown.

‎frontend/src/components/SimplePowerFlow.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
}
9898

9999
.grid-icon {
100-
width: 1.8rem;
101-
height: 1.8rem;
100+
width: 1.6rem;
101+
height: 1.6rem;
102102
}
103103

104104
.simple-car.is-charging .simple-node-power,

‎frontend/src/components/SimplePowerFlow.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function SimplePowerFlow({ data }: SimplePowerFlowProps) {
503503

504504
<span className="simple-node-power">{formatPower(data.battery_power)}</span>
505505

506-
<span>{data.soc_percent}% SoC</span>
506+
<span className="simple-node-secondary">{data.soc_percent}% SoC</span>
507507

508508
<small>
509509
{data.battery_charging ? 'Charging' : data.battery_discharging ? 'Discharging' : 'Idle'}
@@ -533,13 +533,15 @@ function SimplePowerFlow({ data }: SimplePowerFlowProps) {
533533
*/}
534534
<div className="simple-node simple-grid">
535535
<div className="simple-node-circle" ref={gridRef}>
536-
<GridIcon />
536+
<GridIcon className="grid-icon" />
537537
</div>
538538

539539
<strong>Grid</strong>
540540

541541
<span className="simple-node-power">{formatPower(data.grid_power)}</span>
542542

543+
<span className="simple-node-secondary" aria-hidden="true">&nbsp;</span>
544+
543545
<small>{!gridActive ? 'Idle' : data.grid_importing ? 'Importing' : 'Exporting'}</small>
544546
</div>
545547

0 commit comments

Comments
 (0)