From 7c1615143aaac5bf1cd4946fa8bee0fbdb80f599 Mon Sep 17 00:00:00 2001 From: HugoRCD Date: Tue, 28 Jan 2025 13:48:11 +0100 Subject: [PATCH 01/15] feat(docs): Support UI Pro with Vue --- docs/app/composables/useSharedData.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/app/composables/useSharedData.ts b/docs/app/composables/useSharedData.ts index a70408a291..e3ae46b903 100644 --- a/docs/app/composables/useSharedData.ts +++ b/docs/app/composables/useSharedData.ts @@ -9,7 +9,6 @@ export function useSharedData() { label: 'Vue', icon: 'i-simple-icons-vuedotjs', value: 'vue', - disabled: module.value === 'ui-pro', onSelect: () => { if (module.value === 'ui-pro') { return @@ -29,7 +28,6 @@ export function useSharedData() { label: 'UI Pro', icon: 'i-lucide-panels-top-left', value: 'ui-pro', - disabled: framework.value === 'vue', onSelect: () => { if (framework.value === 'vue') { return From 5cda951b93ecd548c587cdb55c7535199a78ea2b Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 29 Jan 2025 14:51:11 +0100 Subject: [PATCH 02/15] fix(NavigationMenu): remove negative mb causing overflow issues --- src/theme/navigation-menu.ts | 3 +- .../NavigationMenu-vue.spec.ts.snap | 60 +++++++++---------- .../__snapshots__/NavigationMenu.spec.ts.snap | 60 +++++++++---------- 3 files changed, 61 insertions(+), 62 deletions(-) diff --git a/src/theme/navigation-menu.ts b/src/theme/navigation-menu.ts index ecf839cb70..a6302f15ab 100644 --- a/src/theme/navigation-menu.ts +++ b/src/theme/navigation-menu.ts @@ -118,8 +118,7 @@ export default (options: Required) => ({ orientation: 'horizontal', highlight: true, class: { - item: '-mb-px', - link: ['after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full', options.theme.transitions && 'after:transition-colors'] + link: ['after:absolute after:bottom-[calc(calc(var(--spacing)*-2)-1px)] after:inset-x-2.5 after:block after:h-px after:rounded-full', options.theme.transitions && 'after:transition-colors'] } }, { orientation: 'vertical', diff --git a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap index 4c1ea14705..daedb69700 100644 --- a/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap +++ b/test/components/__snapshots__/NavigationMenu-vue.spec.ts.snap @@ -569,8 +569,8 @@ exports[`NavigationMenu > renders with neutral variant link highlight correctly "