Skip to content

Commit cec08e6

Browse files
committed
feature: scroll to top button, modal improvements
1 parent 105d37e commit cec08e6

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

resources/js/components/DeleteUserModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const deleteUser = () => {
3030
<template>
3131
<Dialog
3232
v-model:visible="modalOpen"
33-
class="m-4 sm:m-0 w-[40rem]"
33+
class="w-[40rem]"
3434
position="center"
3535
header="Are you sure you want to delete your account?"
3636
:draggable="false"

resources/js/layouts/app/HeaderLayout.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ const toggleMobileUserMenu = (event) => {
7676
</div>
7777
</template>
7878
</Drawer>
79+
<ScrollTop :buttonProps="{
80+
class: 'fixed! right-4! bottom-4! md:right-8! md:bottom-8! z-[1000]!',
81+
rounded: true,
82+
raised: true,
83+
}" />
7984
</Teleport>
8085
</ClientOnly>
8186
<div class="min-h-screen">

resources/js/layouts/app/SidebarLayout.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ const toggleMobileUserMenu = (event) => {
7474
</div>
7575
</template>
7676
</Drawer>
77+
<ScrollTop :buttonProps="{
78+
class: 'fixed! right-4! bottom-4! md:right-8! md:bottom-8! z-[1000]!',
79+
rounded: true,
80+
raised: true,
81+
}" />
7782
</Teleport>
7883
</ClientOnly>
7984

resources/js/theme/global-pt.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
* https://primevue.org/passthrough/#global
44
*/
55
export default {
6+
dialog: {
7+
root: {
8+
class: 'm-4 sm:m-0'
9+
},
10+
mask: {
11+
class: 'backdrop-blur-xs'
12+
},
13+
},
614
toast: {
715
root: {
816
// Full width/centered on mobile, bottom right desktop

0 commit comments

Comments
 (0)