Skip to content

Commit 90ae2dd

Browse files
authored
Merge pull request #27 from connorabbas/develop
Component improvements for theme
2 parents f48fa6a + e3c83cc commit 90ae2dd

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

resources/js/Components/Container.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = defineProps({
1111
<template>
1212
<div
1313
: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"
1515
>
1616
<slot />
1717
</div>

resources/js/Components/PrimeVue/LinksMenu.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<script setup>
22
import { useTemplateRef } from 'vue';
33
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+
48
const childRef = useTemplateRef('child-ref');
59
defineExpose({
610
childRef,

resources/js/Components/PrimeVue/LinksMenuBar.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ defineExpose({
1313
<slot name="start"></slot>
1414
</template>
1515
<template #item="{ item, props, hasSubmenu, root }">
16+
<!-- add if using 'nora' preset theme -->
17+
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
1618
<Link
1719
v-if="item.route"
1820
:href="item.route"
1921
class="p-menubar-item-link"
2022
: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,
2324
}"
2425
custom
2526
>

resources/js/Components/PrimeVue/LinksPanelMenu.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,23 @@
1616
}"
1717
>
1818
<template #item="{ item }">
19+
<!-- add if using 'nora' preset theme -->
20+
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
1921
<Link
2022
v-if="item.route"
2123
:href="item.route"
2224
custom
2325
class="flex items-center cursor-pointer no-underline px-4 py-2"
2426
:class="
2527
item.active
26-
? 'text-primary'
28+
? 'font-bold text-primary'
2729
: 'text-surface-700 dark:text-surface-0'
2830
"
2931
>
3032
<span
3133
v-show="item.icon"
3234
:class="item.icon"
33-
class="p-panelmenu-item-icon mr-2"
35+
class="mr-2"
3436
/>
3537
<span>{{ item.label }}</span>
3638
</Link>
@@ -43,7 +45,7 @@
4345
<span
4446
v-show="item.icon"
4547
:class="item.icon"
46-
class="p-panelmenu-item-icon mr-2"
48+
class="mr-2"
4749
/>
4850
<span>{{ item.label }}</span>
4951
<span v-if="item.items" class="pi pi-angle-down ml-auto" />

resources/js/Layouts/AuthenticatedLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ watchEffect(() => {
9393
:model="mainMenuItems"
9494
:pt="{
9595
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',
9797
},
9898
button: {
9999
class: 'hidden',

0 commit comments

Comments
 (0)