mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Apply suggestions from code review
This commit is contained in:
parent
793f3dd75c
commit
1619dd29e9
@ -199,7 +199,7 @@ Module.register("clock", {
|
|||||||
sunWrapper.innerHTML =
|
sunWrapper.innerHTML =
|
||||||
'<span class="' +
|
'<span class="' +
|
||||||
(isVisible ? "bright" : "") +
|
(isVisible ? "bright" : "") +
|
||||||
'"><i class="fas fa-sun-o" aria-hidden="true"></i> ' +
|
'"><i class="fas fa-sun" aria-hidden="true"></i> ' +
|
||||||
untilNextEventString +
|
untilNextEventString +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
'<span><i class="fas fa-arrow-up" aria-hidden="true"></i> ' +
|
'<span><i class="fas fa-arrow-up" aria-hidden="true"></i> ' +
|
||||||
@ -230,7 +230,7 @@ Module.register("clock", {
|
|||||||
moonWrapper.innerHTML =
|
moonWrapper.innerHTML =
|
||||||
'<span class="' +
|
'<span class="' +
|
||||||
(isVisible ? "bright" : "") +
|
(isVisible ? "bright" : "") +
|
||||||
'"><i class="fas fa-moon-o" aria-hidden="true"></i> ' +
|
'"><i class="fas fa-moon" aria-hidden="true"></i> ' +
|
||||||
illuminatedFractionString +
|
illuminatedFractionString +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
'<span><i class="fas fa-arrow-up" aria-hidden="true"></i> ' +
|
'<span><i class="fas fa-arrow-up" aria-hidden="true"></i> ' +
|
||||||
|
@ -135,7 +135,7 @@ Module.register("currentweather", {
|
|||||||
var windDirection = document.createElement("sup");
|
var windDirection = document.createElement("sup");
|
||||||
if (this.config.showWindDirectionAsArrow) {
|
if (this.config.showWindDirectionAsArrow) {
|
||||||
if (this.windDeg !== null) {
|
if (this.windDeg !== null) {
|
||||||
windDirection.innerHTML = ' <i class="fas fa-long-arrow-down" style="transform:rotate(' + this.windDeg + 'deg);"></i> ';
|
windDirection.innerHTML = ' <i class="fas fa-long-arrow-alt-down" style="transform:rotate(' + this.windDeg + 'deg);"></i> ';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
windDirection.innerHTML = " " + this.translate(this.windDirection);
|
windDirection.innerHTML = " " + this.translate(this.windDirection);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{% if config.showWindDirection %}
|
{% if config.showWindDirection %}
|
||||||
<sup>
|
<sup>
|
||||||
{% if config.showWindDirectionAsArrow %}
|
{% if config.showWindDirectionAsArrow %}
|
||||||
<i class="fas fa-long-arrow-up" style="transform:rotate({{ current.windDirection }}deg);"></i>
|
<i class="fas fa-long-arrow-alt-up" style="transform:rotate({{ current.windDirection }}deg);"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ current.cardinalWindDirection() | translate }}
|
{{ current.cardinalWindDirection() | translate }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user