@fy-/fws-vue 2.3.1 → 2.3.3

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.
@@ -267,7 +267,7 @@ function handleBackdropClick(event: MouseEvent) {
267
267
  <!-- Modal panel -->
268
268
  <div
269
269
  ref="modalRef"
270
- :class="`relative ${mSize} max-w-6xl max-h-[85vh] bg-white rounded-lg shadow dark:bg-fv-neutral-900 flex flex-col`"
270
+ :class="`relative ${mSize} max-w-6xl max-h-[85vh] px-4 sm:px-0 box-border bg-white rounded-lg shadow dark:bg-fv-neutral-900 flex flex-col`"
271
271
  :style="{ zIndex }"
272
272
  tabindex="-1"
273
273
  @click.stop
@@ -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
@@ -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
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.3.01",
3
+ "version": "2.3.03",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",