mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Merge pull request #2780 from Tom-Hirschberger/develop
This commit is contained in:
commit
f7f0bc8681
@ -13,6 +13,7 @@ _This release is scheduled to be released on 2022-04-01._
|
||||
|
||||
- Added a config option under the weather module, absoluteDates, providing an option to format weather forecast date output with either absolute or relative dates.
|
||||
- Added test for new weather forecast absoluteDates porperty.
|
||||
- The modules get a class hidden added/removed if they get hidden/shown
|
||||
|
||||
### Updated
|
||||
|
||||
|
@ -245,6 +245,7 @@ const MM = (function () {
|
||||
if (moduleWrapper !== null) {
|
||||
moduleWrapper.style.transition = "opacity " + speed / 1000 + "s";
|
||||
moduleWrapper.style.opacity = 0;
|
||||
moduleWrapper.classList.add("hidden");
|
||||
|
||||
clearTimeout(module.showHideTimer);
|
||||
module.showHideTimer = setTimeout(function () {
|
||||
@ -310,6 +311,7 @@ const MM = (function () {
|
||||
moduleWrapper.style.transition = "opacity " + speed / 1000 + "s";
|
||||
// Restore the position. See hideModule() for more info.
|
||||
moduleWrapper.style.position = "static";
|
||||
moduleWrapper.classList.remove("hidden");
|
||||
|
||||
updateWrapperStates();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user