Skip to content

Commit f59c585

Browse files
committed
fix conflicts
2 parents 0e9f83e + 6fa726e commit f59c585

File tree

5 files changed

+16
-28
lines changed

5 files changed

+16
-28
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
resources/js/components/ui/*
22
resources/js/ziggy.js
3+
resources/views/mail/*

package-lock.json

-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"vue-tsc": "^2.2.4"
2424
},
2525
"dependencies": {
26-
"@headlessui/vue": "^1.7.23",
2726
"@inertiajs/vue3": "^2.0.0-beta.3",
2827
"@vitejs/plugin-vue": "^5.2.1",
2928
"@vueuse/core": "^12.0.0",

resources/js/components/NavUser.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<script setup lang="ts">
22
import UserInfo from '@/components/UserInfo.vue';
33
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
4-
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
4+
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '@/components/ui/sidebar';
55
import { type SharedData, type User } from '@/types';
66
import { usePage } from '@inertiajs/vue3';
77
import { ChevronsUpDown } from 'lucide-vue-next';
88
import UserMenuContent from './UserMenuContent.vue';
99
1010
const page = usePage<SharedData>();
1111
const user = page.props.auth.user as User;
12+
const { isMobile, state } = useSidebar();
1213
</script>
1314

1415
<template>
@@ -21,7 +22,12 @@ const user = page.props.auth.user as User;
2122
<ChevronsUpDown class="ml-auto size-4" />
2223
</SidebarMenuButton>
2324
</DropdownMenuTrigger>
24-
<DropdownMenuContent class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg" side="bottom" align="end" :side-offset="4">
25+
<DropdownMenuContent
26+
class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
27+
:side="isMobile ? 'bottom' : state === 'collapsed' ? 'left' : 'bottom'"
28+
align="end"
29+
:side-offset="4"
30+
>
2531
<UserMenuContent :user="user" />
2632
</DropdownMenuContent>
2733
</DropdownMenu>

resources/js/pages/settings/Profile.vue

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { TransitionRoot } from '@headlessui/vue';
32
import { Head, useForm, usePage } from '@inertiajs/vue3';
43
54
import DeleteUser from '@/components/DeleteUser.vue';
@@ -64,15 +63,14 @@ const submit = () => {
6463
<div class="flex items-center gap-4">
6564
<Button :disabled="form.processing">Save</Button>
6665

67-
<TransitionRoot
68-
:show="form.recentlySuccessful"
69-
enter="transition ease-in-out"
70-
enter-from="opacity-0"
71-
leave="transition ease-in-out"
72-
leave-to="opacity-0"
66+
<Transition
67+
enter-active-class="transition ease-in-out"
68+
enter-from-class="opacity-0"
69+
leave-active-class="transition ease-in-out"
70+
leave-to-class="opacity-0"
7371
>
74-
<p class="text-sm text-neutral-600">Saved.</p>
75-
</TransitionRoot>
72+
<p v-show="form.recentlySuccessful" class="text-sm text-neutral-600">Saved.</p>
73+
</Transition>
7674
</div>
7775
</form>
7876
</div>

0 commit comments

Comments
 (0)