File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ defineExpose({
21
21
class =" p-menubar-item-link"
22
22
:class =" {
23
23
'font-bold text-primary': item.active,
24
+ 'text-muted-color': root && !item.active,
24
25
}"
25
26
custom
26
27
>
@@ -37,6 +38,9 @@ defineExpose({
37
38
:target =" item.target"
38
39
v-bind =" props.action"
39
40
class =" p-menubar-item-link"
41
+ :class =" {
42
+ 'text-muted-color': root,
43
+ }"
40
44
>
41
45
<span
42
46
v-show =" item.icon"
@@ -47,11 +51,8 @@ defineExpose({
47
51
<i
48
52
v-if =" hasSubmenu"
49
53
:class =" [
50
- 'pi pi-angle-down',
51
- {
52
- 'pi-angle-down ml-2': root,
53
- 'pi-angle-right ml-auto': !root,
54
- },
54
+ 'pi text-muted-color',
55
+ root ? 'pi-angle-down text-xs' : 'pi-angle-right',
55
56
]"
56
57
></i >
57
58
</a >
Original file line number Diff line number Diff line change 15
15
},
16
16
}"
17
17
>
18
- <template #item =" { item } " >
18
+ <template #item =" { item , active } " >
19
19
<!-- add if using 'nora' preset theme -->
20
20
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
21
21
<Link
48
48
class =" p-panelmenu-item-icon mr-2"
49
49
/>
50
50
<span >{{ item.label }}</span >
51
- <span v-if =" item.items" class =" pi pi-angle-down ml-auto" />
51
+ <span
52
+ v-if =" item.items"
53
+ :class =" [
54
+ 'pi text-muted-color ml-auto',
55
+ active ? 'pi-angle-down' : 'pi-angle-right',
56
+ ]"
57
+ />
52
58
</a >
53
59
</template >
54
60
</PanelMenu >
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ watchEffect(() => {
134
134
<span class =" text-base" >
135
135
{{ $page.props.auth.user.name }}
136
136
</span >
137
- <i class =" pi pi-angle-down ml-1 " ></i >
137
+ <i class =" pi pi-angle-down" ></i >
138
138
</Button >
139
139
</div >
140
140
</div >
You can’t perform that action at this time.
0 commit comments