Skip to content

Commit

Permalink
Change lower threshold to 15%
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwijos committed Jan 14, 2024
1 parent 9560f00 commit 6a322a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/ChargeMeter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="charge-meter"
min="0"
max="1"
low="0.2"
low="0.15"
high="0.4"
optimum="0.8"
value={fraction}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(protected)/admin/bikes/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$: charge = bike.charge_perc * 100;
$: {
if (charge <= 20) {
if (charge <= 15) {
meterColor = bike.active
? 'stroke-red-500 dark:stroke-error-500'
: 'stroke-red-800 dark:stroke-error-800';
Expand Down

0 comments on commit 6a322a3

Please sign in to comment.