Skip to content

Commit fb1ee70

Browse files
authored
improvements
1 parent 1530327 commit fb1ee70

File tree

7 files changed

+40
-19
lines changed

7 files changed

+40
-19
lines changed

resources/js/Components/Layout/Admin/TopNav.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const toggleUserMenu = (event) => {
3232

3333
<template>
3434
<nav class="dynamic-bg border-b dynamic-border">
35-
<Container :fluid="true">
35+
<Container fluid>
3636
<LinksMenuBar :pt="{
3737
root: {
3838
class: 'px-0 py-3 border-0 rounded-none dynamic-bg',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<section>
3+
<div class="flex items-end justify-between flex-wrap gap-2 md:gap-4">
4+
<div>
5+
<h1 class="font-bold text-2xl md:text-3xl leading-tight">
6+
<slot name="title" />
7+
</h1>
8+
</div>
9+
<div>
10+
<div v-if="$slots.end">
11+
<slot name="end" />
12+
</div>
13+
</div>
14+
</div>
15+
</section>
16+
</template>

resources/js/Layouts/Admin/AuthenticatedLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ onMounted(() => {
8383
v-if="breadcrumbs.length"
8484
class="dynamic-bg border-b dynamic-border"
8585
>
86-
<Container :fluid="true">
86+
<Container fluid>
8787
<div class="flex items-center justify-between flex-wrap">
8888
<div>
8989
<LinksBreadcrumb
@@ -106,7 +106,7 @@ onMounted(() => {
106106
<!-- Page Title -->
107107
<section v-if="pageTitle">
108108
<Container
109-
:fluid="true"
109+
fluid
110110
class="my-4 md:my-8"
111111
>
112112
<div class="flex items-end justify-between flex-wrap">

resources/js/Pages/Admin/Dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<InertiaHead title="Dashboard" />
33
<AuthenticatedAdminLayout>
44
<Container
5-
:fluid="true"
5+
fluid
66
class="py-4 md:py-8"
77
>
88
<div>

resources/js/Pages/Admin/Profile/Edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const breadcrumbs = [
2828
:page-title="pageTitle"
2929
:breadcrumbs="breadcrumbs"
3030
>
31-
<Container :fluid="true">
31+
<Container fluid>
3232
<div class="space-y-4 md:space-y-8">
3333
<Card :pt="{
3434
body: {

resources/js/Pages/Admin/Users/Index.vue

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,25 @@ const {
5555
<InertiaHead :title="pageTitle" />
5656

5757
<AuthenticatedAdminLayout
58-
:page-title="pageTitle"
5958
:breadcrumbs="breadcrumbs"
6059
>
61-
<template #titleEnd>
62-
<Button
63-
v-if="filteredOrSorted"
64-
severity="secondary"
65-
type="button"
66-
icon="pi pi-filter-slash"
67-
label="Clear Filters"
68-
outlined
69-
@click="hardReset"
70-
/>
71-
</template>
72-
73-
<Container :fluid="true">
60+
<Container fluid>
61+
<PageTitleSection>
62+
<template #title>
63+
{{ pageTitle }}
64+
</template>
65+
<template #end>
66+
<Button
67+
v-if="filteredOrSorted"
68+
severity="secondary"
69+
type="button"
70+
icon="pi pi-filter-slash"
71+
label="Clear Filters"
72+
outlined
73+
@click="hardReset"
74+
/>
75+
</template>
76+
</PageTitleSection>
7477
<div>
7578
<Card pt:body:class="p-3">
7679
<template #content>

resources/js/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Tooltip from 'primevue/tooltip';
1414
import AuthenticatedAdminLayout from '@/Layouts/Admin/AuthenticatedLayout.vue';
1515
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue';
1616
import Container from '@/Components/Container.vue';
17+
import PageTitleSection from '@/Components/PageTitleSection.vue';
1718

1819
import customThemePreset from '@/theme/noir-preset';
1920
import { useDark } from '@vueuse/core';
@@ -52,6 +53,7 @@ createInertiaApp({
5253
.component('AuthenticatedAdminLayout', AuthenticatedAdminLayout)
5354
.component('AuthenticatedLayout', AuthenticatedLayout)
5455
.component('Container', Container)
56+
.component('PageTitleSection', PageTitleSection)
5557
.mount(el);
5658
},
5759
progress: {

0 commit comments

Comments
 (0)