@fy-/fws-vue 2.3.2 → 2.3.4
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.
|
@@ -52,11 +52,6 @@ function onCall(data: NotifProps) {
|
|
|
52
52
|
// If there's an existing notification, remove it first
|
|
53
53
|
hideNotif()
|
|
54
54
|
|
|
55
|
-
// Ensure a minimum of 1s if time is too short or undefined
|
|
56
|
-
if (!data.time || data.time < 1000) {
|
|
57
|
-
data.time = 5000
|
|
58
|
-
}
|
|
59
|
-
|
|
60
55
|
// Automatically compute an icon if none is provided
|
|
61
56
|
if (!data.imgIcon) {
|
|
62
57
|
if (data.type === 'info') data.imgIcon = InformationCircleIcon
|
|
@@ -243,7 +238,7 @@ onUnmounted(() => {
|
|
|
243
238
|
<div
|
|
244
239
|
v-if="currentNotif !== null"
|
|
245
240
|
id="base-notif"
|
|
246
|
-
class="fixed bottom-4 right-4 sm:right-8 z-[2000] max-w-sm w-full sm:w-
|
|
241
|
+
class="fixed !text-xs md:!text-sm bottom-4 right-4 sm:right-8 z-[2000] max-w-sm w-full sm:w-72 rounded-lg border shadow-lg overflow-hidden backdrop-blur-sm transition-all duration-300 transform"
|
|
247
242
|
role="alert"
|
|
248
243
|
:aria-describedby="ariaDescribedBy"
|
|
249
244
|
:class="[bgColor, borderColor, textColor]"
|
|
@@ -259,7 +254,7 @@ onUnmounted(() => {
|
|
|
259
254
|
/>
|
|
260
255
|
</div>
|
|
261
256
|
|
|
262
|
-
<div class="p-4">
|
|
257
|
+
<div class="p2 lg:p-4">
|
|
263
258
|
<!-- Header with icon and title -->
|
|
264
259
|
<div class="flex items-center justify-between">
|
|
265
260
|
<div class="flex items-center gap-3">
|
|
@@ -299,7 +294,7 @@ onUnmounted(() => {
|
|
|
299
294
|
<!-- Notification content -->
|
|
300
295
|
<div
|
|
301
296
|
v-if="currentNotif.content"
|
|
302
|
-
class="mt-2 text-sm"
|
|
297
|
+
class="mt-2 text-xs md:text-sm"
|
|
303
298
|
:class="textColor"
|
|
304
299
|
v-html="currentNotif.content"
|
|
305
300
|
/>
|