Skip to content

Commit

Permalink
Fix: live card header bg matches upstream color
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBoehm committed Jan 14, 2025
1 parent b233840 commit 13904a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/BatteryView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class="card-header d-flex justify-content-between align-items-center"
:class="{
'text-bg-danger': batteryData.data_age >= 20,
'text-bg-primary': batteryData.data_age < 20,
'text-bg-success': batteryData.data_age < 20,
}"
>
<div class="p-1 flex-grow-1">
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/HuaweiView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class="card-header d-flex justify-content-between align-items-center"
:class="{
'text-bg-danger': huaweiData.data_age > 20,
'text-bg-primary': huaweiData.data_age < 19,
'text-bg-success': huaweiData.data_age < 19,
}"
>
<div class="p-1 flex-grow-1">
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/SolarChargerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class="card-header d-flex justify-content-between align-items-center"
:class="{
'text-bg-danger': item.data_age_ms >= 10000,
'text-bg-primary': item.data_age_ms < 10000,
'text-bg-success': item.data_age_ms < 10000,
}"
>
<div class="p-1 flex-grow-1">
Expand Down

0 comments on commit 13904a4

Please sign in to comment.