From e80ea795fe807f49b272140ed88c5bd56cc4340b Mon Sep 17 00:00:00 2001 From: Ajit Mehrotra Date: Mon, 1 Dec 2025 21:20:26 -0500 Subject: [PATCH] refactor: enhance app configuration and notification components for improved UI consistency - modified vite.config.ts to integrate app configuration into UI setup - updated app.config.ts to include new button, tabs, and slideover variants for better theming - cleaned up main.css by removing unused styles and ensuring proper imports - refactored notification components to streamline structure and improve readability --- web/app.config.ts | 32 ++++++- web/src/assets/main.css | 2 +- .../components/Notifications/Indicator.vue | 2 +- web/src/components/Notifications/Item.vue | 18 +--- web/src/components/Notifications/List.vue | 7 +- web/src/components/Notifications/Sidebar.vue | 95 ++++++------------- web/vite.config.ts | 5 +- 7 files changed, 73 insertions(+), 88 deletions(-) diff --git a/web/app.config.ts b/web/app.config.ts index 45fde7df2..f542e723c 100644 --- a/web/app.config.ts +++ b/web/app.config.ts @@ -1,8 +1,36 @@ export default { ui: { colors: { - primary: 'blue', - neutral: 'gray', + // overrided by tailwind-shared/css-variables.css + // these shared tailwind styles and colors are imported in src/assets/main.css + }, + + // https://ui.nuxt.com/docs/components/button#theme + button: { + //keep in mind, there is a "variant" AND a "variants" property + variants: { + variant: { + ghost: '', + link: 'hover:underline focus:underline', + }, + }, + }, + + // https://ui.nuxt.com/docs/components/tabs#theme + tabs: { + variants: { + pill: {}, + }, + }, + + // https://ui.nuxt.com/docs/components/slideover#theme + slideover: { + slots: { + // title: 'text-3xl font-normal', + }, + variants: { + right: {}, + }, }, }, toaster: { diff --git a/web/src/assets/main.css b/web/src/assets/main.css index 6c36c79df..61c8dfc7a 100644 --- a/web/src/assets/main.css +++ b/web/src/assets/main.css @@ -92,4 +92,4 @@ iframe#progressFrame { .has-banner-gradient #header.image > * { position: relative; z-index: 1; -} +} \ No newline at end of file diff --git a/web/src/components/Notifications/Indicator.vue b/web/src/components/Notifications/Indicator.vue index da096d455..fd45fadae 100644 --- a/web/src/components/Notifications/Indicator.vue +++ b/web/src/components/Notifications/Indicator.vue @@ -44,7 +44,7 @@ const icon = computed<{ name: string; color: string } | null>(() => {