From 128d93283c5651931f3906069a90a129e3e969f3 Mon Sep 17 00:00:00 2001 From: Denis FL Date: Fri, 14 Sep 2018 11:41:46 +0300 Subject: [PATCH] Add custom template --- src/components/Snotify.vue | 9 +++--- src/components/SnotifyToast.vue | 53 +++++++++++++++------------------ 2 files changed, 28 insertions(+), 34 deletions(-) diff --git a/src/components/Snotify.vue b/src/components/Snotify.vue index 32e44a5..1394444 100644 --- a/src/components/Snotify.vue +++ b/src/components/Snotify.vue @@ -2,11 +2,10 @@
- - - +
diff --git a/src/components/SnotifyToast.vue b/src/components/SnotifyToast.vue index dfb1f52..453b8f8 100644 --- a/src/components/SnotifyToast.vue +++ b/src/components/SnotifyToast.vue @@ -16,39 +16,33 @@ @mouseleave="onMouseLeave" @animationend="onExitTransitionEnd"> - -
- -
-
+
+ +
-
- - -
{{toast.title | truncate(toast.config.titleMaxLength)}}
-
- -
{{toast.body | truncate(toast.config.bodyMaxLength)}}
-
- - - - - -
-
- +
+
+
+
+ +
+
+
+ {{toast.title | truncate(toast.config.titleMaxLength)}} +
+
+ {{toast.body | truncate(toast.config.bodyMaxLength)}}
- - + +
+
+
-
- - - -
-