Update app.js
Layout tweak. Make number of spaces dependent on length of locale speedUnits variable.master
parent
f1bacffca6
commit
1e733d4378
|
|
@ -110,7 +110,7 @@ function draw() {
|
|||
clockLayout.tempUnit.label = temp[2];
|
||||
clockLayout.weatherIcon.src = chooseIcon(currentWeather.txt);
|
||||
const wind = locale.speed(currentWeather.wind).match(/^(\D*\d*)(.*)$/);
|
||||
clockLayout.wind.label = wind[1] + " ";
|
||||
clockLayout.wind.label = wind[1] + " ".repeat(wind[2].length-1);
|
||||
clockLayout.windUnit.label = wind[2] + " " + (currentWeather.wrose||'').toUpperCase();
|
||||
}
|
||||
else{
|
||||
|
|
|
|||
Loading…
Reference in New Issue