Skip to content

Commit 84deedc

Browse files
committed
wip: styling toast through global pass through
1 parent 56956bc commit 84deedc

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

resources/js/app.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ createInertiaApp({
4444
summary: responseBody.error_summary,
4545
detail: responseBody.error_detail,
4646
life: 5000,
47-
styleClass: 'shadow-lg mb-0 mt-4',
47+
//styleClass: 'shadow-lg mb-0 mt-4 left-4 md:left-auto',
4848
});
4949
}
5050
});
@@ -69,6 +69,16 @@ createInertiaApp({
6969
},
7070
},
7171
},
72+
pt: {
73+
toast: {
74+
root: {
75+
class: 'fixed left-4! right-4! bottom-4 md:left-auto! md:top-auto'
76+
},
77+
message: {
78+
class: 'shadow-lg mb-0 mt-4 w-full'
79+
},
80+
},
81+
}
7282
})
7383
.use(ToastService)
7484
.component('InertiaHead', Head)

resources/js/pages/settings/Profile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const showSuccessToast = () => {
3939
severity: 'success',
4040
summary: 'Saved',
4141
detail: 'Profile information has been updated',
42-
life: 3000,
42+
life: 120000,
4343
});
4444
};
4545
const updateProfileInformation = () => {

0 commit comments

Comments
 (0)