File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const props = defineProps({
11
11
<template >
12
12
<div
13
13
:class =" [spacedMobile ? 'px-4' : 'px-0']"
14
- class =" max-w-screen-xl mx-auto sm:px-4"
14
+ class =" max-w-screen-2xl mx-auto sm:px-4"
15
15
>
16
16
<slot />
17
17
</div >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import { useTemplateRef } from ' vue' ;
3
3
4
+ // Alternatively, you can use the default <Menu /> component using a command callback, and a manual router visit:
5
+ // https://primevue.org/menu/#command
6
+ // https://inertiajs.com/manual-visits
7
+
4
8
const childRef = useTemplateRef (' child-ref' );
5
9
defineExpose ({
6
10
childRef,
Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ defineExpose({
13
13
<slot name =" start" ></slot >
14
14
</template >
15
15
<template #item =" { item , props , hasSubmenu , root } " >
16
+ <!-- add if using 'nora' preset theme -->
17
+ <!-- hover:text-primary-100 hover:dark:text-primary-950 -->
16
18
<Link
17
19
v-if =" item.route"
18
20
:href =" item.route"
19
21
class =" p-menubar-item-link"
20
22
:class =" {
21
- 'font-bold text-primary dark:text-primary-300 bg-primary-50 dark:bg-primary-950 rounded-lg':
22
- item.active,
23
+ 'font-bold text-primary': item.active,
23
24
}"
24
25
custom
25
26
>
Original file line number Diff line number Diff line change 16
16
}"
17
17
>
18
18
<template #item =" { item } " >
19
+ <!-- add if using 'nora' preset theme -->
20
+ <!-- hover:text-primary-100 hover:dark:text-primary-950 -->
19
21
<Link
20
22
v-if =" item.route"
21
23
:href =" item.route"
22
24
custom
23
25
class =" flex items-center cursor-pointer no-underline px-4 py-2"
24
26
:class ="
25
27
item.active
26
- ? 'text-primary'
28
+ ? 'font-bold text-primary'
27
29
: 'text-surface-700 dark:text-surface-0'
28
30
"
29
31
>
30
32
<span
31
33
v-show =" item.icon"
32
34
:class =" item.icon"
33
- class =" p-panelmenu-item-icon mr-2"
35
+ class =" mr-2"
34
36
/>
35
37
<span >{{ item.label }}</span >
36
38
</Link >
43
45
<span
44
46
v-show =" item.icon"
45
47
:class =" item.icon"
46
- class =" p-panelmenu-item-icon mr-2"
48
+ class =" mr-2"
47
49
/>
48
50
<span >{{ item.label }}</span >
49
51
<span v-if =" item.items" class =" pi pi-angle-down ml-auto" />
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ watchEffect(() => {
93
93
:model =" mainMenuItems"
94
94
:pt =" {
95
95
root: {
96
- class: 'px-0 py-3 border-0 rounded-none',
96
+ class: 'px-0 py-3 border-0 rounded-none bg-surface-0 dark:bg-surface-900 ',
97
97
},
98
98
button: {
99
99
class: 'hidden',
You can’t perform that action at this time.
0 commit comments