mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Change slide position based on notification position - closes #137
This commit is contained in:
@@ -27,6 +27,7 @@ Module.register('alert',{
|
||||
return ['ns-default.css'];
|
||||
},
|
||||
show_notification: function (message) {
|
||||
if (this.config.effect == "slide"){this.config.effect=this.config.effect + "-" + this.config.position}
|
||||
message = "<span class='thin' style='line-height: 35px; font-size:24px' color='#4A4A4A'>" + message.title + "</span><br /><span class='light' style='font-size:28px;line-height: 30px;'>" + message.message + "</span>"
|
||||
new NotificationFx({
|
||||
message : message,
|
||||
|
Reference in New Issue
Block a user