@nixweb/nixloc-ui 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -1,6 +1,10 @@
1
1
  <template>
2
2
  <div>
3
- <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
3
+ <div
4
+ class="div-message"
5
+ :class="{ 'div-message-modal-open': modal.open }"
6
+ v-if="storageNotification.length > 0"
7
+ >
4
8
  <Alert type="danger">
5
9
  <div class="side-by-side" v-for="(notification, index) in storageNotification" :key="index">
6
10
  <div class="side-by-side text">
@@ -53,6 +57,7 @@ export default {
53
57
  ...mapMutations("generic", ["removeNotificarions"]),
54
58
 
55
59
  startCountdown() {
60
+ clearInterval(this.countdownInterval);
56
61
  this.countdownInterval = setInterval(() => {
57
62
  if (this.countdown > 0) {
58
63
  this.countdown--;
@@ -68,14 +73,28 @@ export default {
68
73
  this.progressWidth = (this.countdown / this.maxSeconds) * 100;
69
74
  },
70
75
  },
76
+ beforeDestroy() {
77
+ clearInterval(this.countdownInterval);
78
+ },
71
79
  };
72
80
  </script>
73
81
 
74
82
  <style scoped>
75
83
  .div-message {
76
- margin-top: 50px;
84
+ position: fixed;
85
+ top: 16px;
86
+ left: 0;
87
+ right: 0;
88
+ margin: 0 auto;
89
+ width: 40vw;
90
+ max-height: calc(100vh - 32px);
91
+ overflow-y: auto;
77
92
  transition: all 0.5s ease !important;
78
- z-index: 2000;
93
+ z-index: 9999;
94
+ }
95
+
96
+ .div-message-modal-open {
97
+ top: 16px;
79
98
  }
80
99
 
81
100
  .side-by-side {
@@ -85,6 +104,7 @@ export default {
85
104
 
86
105
  .text {
87
106
  margin-right: 10px;
107
+ word-break: break-word;
88
108
  }
89
109
 
90
110
  .progress-bar-container {
@@ -106,4 +126,14 @@ export default {
106
126
  margin-top: 10px;
107
127
  font-size: 16px;
108
128
  }
129
+
130
+ @media (max-width: 768px) {
131
+ .div-message {
132
+ top: 12px;
133
+ right: 12px;
134
+ left: 12px;
135
+ width: auto;
136
+ max-height: calc(100vh - 24px);
137
+ }
138
+ }
109
139
  </style>