diff --git a/src/App.vue b/src/App.vue index 0920bc2..350018a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -127,7 +127,11 @@ diff --git a/src/components/base-components/Dialog.vue b/src/components/base-components/Dialog.vue index 1ceec56..190bef2 100644 --- a/src/components/base-components/Dialog.vue +++ b/src/components/base-components/Dialog.vue @@ -299,7 +299,7 @@ export default { right: 0; bottom: 0; z-index: 1000; - animation: fadeIn ease 0.15s; + animation: fadeIn ease 0.20s; } .dialog-window { box-shadow: 0px 8px 32px var(--shadow); diff --git a/src/components/base-components/PopUp.vue b/src/components/base-components/PopUp.vue index a20ef62..3f527c1 100644 --- a/src/components/base-components/PopUp.vue +++ b/src/components/base-components/PopUp.vue @@ -1,5 +1,5 @@ @@ -53,4 +61,16 @@ export default { border-radius: 8px; background-color: var(--success); } +.fadeOut { + animation: fadeOut ease 1s; +} + +@keyframes fadeOut { + from { + opacity: 1; + } + to { + opacity: 0; + } +} \ No newline at end of file diff --git a/src/store/mutations.js b/src/store/mutations.js index 3055d7e..b8ee51c 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -27,7 +27,8 @@ export default { state.serverInfo = info; }, addPopUp(state, item) { - state.popups.push(item); + item.time = Date.now(); + state.popups.unshift(item); }, removePopUp(state, item) { let index = state.popups.indexOf(item);