@@ -3,9 +3,9 @@ import { useTemplateRef } from 'vue';
33import { usePage } from ' @inertiajs/vue3' ;
44import { ChevronsUpDown , Menu as MenuIcon } from ' lucide-vue-next' ;
55import { useAppLayout } from ' @/composables/useAppLayout' ;
6- import ApplicationLogo from ' @/components/ApplicationLogo.vue' ;
76import ClientOnly from ' @/components/ClientOnly.vue' ;
87import FlashMessages from ' @/components/FlashMessages.vue' ;
8+ import NavLogoLink from ' @/components/NavLogoLink.vue' ;
99import Menu from ' @/components/primevue/menu/Menu.vue' ;
1010import PanelMenu from ' @/components/primevue/menu/PanelMenu.vue' ;
1111import Breadcrumb from ' @/components/primevue/menu/Breadcrumb.vue' ;
@@ -43,7 +43,7 @@ const toggleMobileUserMenu = (event) => {
4343 <!-- Mobile drawer menu -->
4444 <Drawer
4545 v-model:visible =" mobileMenuOpen"
46- position =" left "
46+ position =" right "
4747 >
4848 <div >
4949 <PanelMenu
@@ -55,15 +55,21 @@ const toggleMobileUserMenu = (event) => {
5555 <div class =" flex flex-col" >
5656 <Button
5757 id =" mobile-user-menu-btn"
58- :label =" page.props.auth.user.name"
59- pt:root:class =" flex flex-row-reverse justify-between"
6058 severity =" secondary"
6159 size =" large"
60+ pt:root:class =" flex justify-between"
6261 @click =" toggleMobileUserMenu($event)"
6362 >
64- <template #icon >
63+ <div class =" flex items-center gap-3" >
64+ <Tag
65+ v-if =" page.props.auth.isAdmin"
66+ value =" ADMIN"
67+ />
68+ {{ page.props.auth.user.name }}
69+ </div >
70+ <div >
6571 <ChevronsUpDown />
66- </template >
72+ </div >
6773 </Button >
6874 <Menu
6975 ref =" mobile-user-menu"
@@ -82,17 +88,9 @@ const toggleMobileUserMenu = (event) => {
8288 <header class =" block lg:fixed top-0 left-0 right-0 z-50" >
8389 <nav class =" dynamic-bg shadow-sm flex justify-between items-center lg:hidden" >
8490 <Container class =" grow" >
85- <div class =" flex justify-between items-center py-4" >
86- <div class =" flex gap-4" >
87- <InertiaLink :href =" route('welcome')" >
88- <ApplicationLogo
89- class =" block h-8 w-auto fill-current text-surface-900 dark:text-surface-0"
90- />
91- </InertiaLink >
92- <Tag
93- v-if =" page.props.auth.isAdmin"
94- value =" ADMIN"
95- />
91+ <div class =" flex justify-between items-center gap-4 py-4" >
92+ <div >
93+ <NavLogoLink />
9694 </div >
9795 <div >
9896 <Button
@@ -118,16 +116,8 @@ const toggleMobileUserMenu = (event) => {
118116 >
119117 <div class =" w-full h-full flex flex-col justify-between p-4" >
120118 <div class =" space-y-6" >
121- <div class =" flex gap-4 items-center" >
122- <InertiaLink :href =" route('welcome')" >
123- <ApplicationLogo
124- class =" block h-10 w-auto fill-current text-surface-900 dark:text-surface-0"
125- />
126- </InertiaLink >
127- <Tag
128- v-if =" page.props.auth.isAdmin"
129- value =" ADMIN"
130- />
119+ <div class =" p-2" >
120+ <NavLogoLink />
131121 </div >
132122 <div >
133123 <PanelMenu
@@ -136,18 +126,23 @@ const toggleMobileUserMenu = (event) => {
136126 />
137127 </div >
138128 </div >
139- <div >
129+ <div class = " flex " >
140130 <Button
141131 id =" user-menu-btn"
142- :label =" page.props.auth.user.name"
143- pt:root:class =" flex flex-row-reverse justify-between"
144132 severity =" secondary"
145- fluid
133+ pt:root:class = " flex grow justify-between "
146134 @click =" toggleUserMenu($event)"
147135 >
148- <template #icon >
136+ <div class =" flex items-center gap-3" >
137+ <Tag
138+ v-if =" page.props.auth.isAdmin"
139+ value =" ADMIN"
140+ />
141+ {{ page.props.auth.user.name }}
142+ </div >
143+ <div >
149144 <ChevronsUpDown />
150- </template >
145+ </div >
151146 </Button >
152147 <Menu
153148 ref =" user-menu"
0 commit comments