Skip to content

Component improvements for theme #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/Components/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const props = defineProps({
<template>
<div
:class="[spacedMobile ? 'px-4' : 'px-0']"
class="max-w-screen-xl mx-auto sm:px-4"
class="max-w-screen-2xl mx-auto sm:px-4"
>
<slot />
</div>
Expand Down
4 changes: 4 additions & 0 deletions resources/js/Components/PrimeVue/LinksMenu.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<script setup>
import { useTemplateRef } from 'vue';

// Alternatively, you can use the default <Menu /> component using a command callback, and a manual router visit:
// https://primevue.org/menu/#command
// https://inertiajs.com/manual-visits

const childRef = useTemplateRef('child-ref');
defineExpose({
childRef,
Expand Down
5 changes: 3 additions & 2 deletions resources/js/Components/PrimeVue/LinksMenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ defineExpose({
<slot name="start"></slot>
</template>
<template #item="{ item, props, hasSubmenu, root }">
<!-- add if using 'nora' preset theme -->
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
<Link
v-if="item.route"
:href="item.route"
class="p-menubar-item-link"
:class="{
'font-bold text-primary dark:text-primary-300 bg-primary-50 dark:bg-primary-950 rounded-lg':
item.active,
'font-bold text-primary': item.active,
}"
custom
>
Expand Down
8 changes: 5 additions & 3 deletions resources/js/Components/PrimeVue/LinksPanelMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@
}"
>
<template #item="{ item }">
<!-- add if using 'nora' preset theme -->
<!-- hover:text-primary-100 hover:dark:text-primary-950 -->
<Link
v-if="item.route"
:href="item.route"
custom
class="flex items-center cursor-pointer no-underline px-4 py-2"
:class="
item.active
? 'text-primary'
? 'font-bold text-primary'
: 'text-surface-700 dark:text-surface-0'
"
>
<span
v-show="item.icon"
:class="item.icon"
class="p-panelmenu-item-icon mr-2"
class="mr-2"
/>
<span>{{ item.label }}</span>
</Link>
Expand All @@ -43,7 +45,7 @@
<span
v-show="item.icon"
:class="item.icon"
class="p-panelmenu-item-icon mr-2"
class="mr-2"
/>
<span>{{ item.label }}</span>
<span v-if="item.items" class="pi pi-angle-down ml-auto" />
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Layouts/AuthenticatedLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ watchEffect(() => {
:model="mainMenuItems"
:pt="{
root: {
class: 'px-0 py-3 border-0 rounded-none',
class: 'px-0 py-3 border-0 rounded-none bg-surface-0 dark:bg-surface-900',
},
button: {
class: 'hidden',
Expand Down