From 7cb987de42ad89efc227eef47a8e06e7bc93206f Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 14 Nov 2023 17:19:59 +0100 Subject: [PATCH] fix(Notification): improve config options --- .../components/overlays/Notification.vue | 53 +++++++++---------- src/runtime/ui.config.ts | 2 + 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/runtime/components/overlays/Notification.vue b/src/runtime/components/overlays/Notification.vue index 5d51068843..0348044a57 100644 --- a/src/runtime/components/overlays/Notification.vue +++ b/src/runtime/components/overlays/Notification.vue @@ -8,34 +8,32 @@ @mouseleave="onMouseleave" >
-
-
- - - -
-

- - {{ title }} - -

-

- - {{ description }} - -

- -
- -
+
+ + + +
+

+ + {{ title }} + +

+

+ + {{ description }} + +

+ +
+
-
-
- -
+
+
+ - -
+
@@ -224,7 +222,8 @@ export default defineComponent({ onMouseover, onMouseleave, onClose, - onAction + onAction, + twMerge } } }) diff --git a/src/runtime/ui.config.ts b/src/runtime/ui.config.ts index 6cf7a1e3cf..6dc2781428 100644 --- a/src/runtime/ui.config.ts +++ b/src/runtime/ui.config.ts @@ -1311,10 +1311,12 @@ export const notification = { container: 'relative overflow-hidden', title: 'text-sm font-medium text-gray-900 dark:text-white', description: 'mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400', + actions: 'flex items-center gap-2 mt-3 flex-shrink-0', background: 'bg-white dark:bg-gray-900', shadow: 'shadow-lg', rounded: 'rounded-lg', padding: 'p-4', + gap: 'gap-3', ring: 'ring-1 ring-gray-200 dark:ring-gray-800', icon: { base: 'flex-shrink-0 w-5 h-5',