Skip to content

Commit 43827f2

Browse files
authored
Adjusted spacing to make it same as before #930. (#935)
* Fixed button spacing issue in dialog modal footer. * Modified confirmation-modal to avoid button spacing issue and increased margin to ml-3 on second button to match the spacing before this modification. * Applied fix to Inertia version too.
1 parent 5d4168e commit 43827f2

14 files changed

+20
-20
lines changed

resources/views/components/confirmation-modal.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
</div>
2323

24-
<div class="px-6 py-4 bg-gray-100 text-right">
24+
<div class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-right">
2525
{{ $footer }}
2626
</div>
2727
</x-jet-modal>

resources/views/components/confirms-password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{{ __('Cancel') }}
3939
</x-jet-secondary-button>
4040

41-
<x-jet-button class="ml-2" dusk="confirm-password-button" wire:click="confirmPassword" wire:loading.attr="disabled">
41+
<x-jet-button class="ml-3" dusk="confirm-password-button" wire:click="confirmPassword" wire:loading.attr="disabled">
4242
{{ $button }}
4343
</x-jet-button>
4444
</x-slot>

stubs/inertia/resources/js/Jetstream/ConfirmationModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
</div>
2222

23-
<div class="px-6 py-4 bg-gray-100 text-right">
23+
<div class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-right">
2424
<slot name="footer">
2525
</slot>
2626
</div>

stubs/inertia/resources/js/Jetstream/ConfirmsPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Cancel
2828
</jet-secondary-button>
2929

30-
<jet-button class="ml-2" @click="confirmPassword" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
30+
<jet-button class="ml-3" @click="confirmPassword" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
3131
{{ button }}
3232
</jet-button>
3333
</template>

stubs/inertia/resources/js/Pages/API/Partials/ApiTokenManager.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
Cancel
135135
</jet-secondary-button>
136136

137-
<jet-button class="ml-2" @click="updateApiToken" :class="{ 'opacity-25': updateApiTokenForm.processing }" :disabled="updateApiTokenForm.processing">
137+
<jet-button class="ml-3" @click="updateApiToken" :class="{ 'opacity-25': updateApiTokenForm.processing }" :disabled="updateApiTokenForm.processing">
138138
Save
139139
</jet-button>
140140
</template>
@@ -155,7 +155,7 @@
155155
Cancel
156156
</jet-secondary-button>
157157

158-
<jet-danger-button class="ml-2" @click="deleteApiToken" :class="{ 'opacity-25': deleteApiTokenForm.processing }" :disabled="deleteApiTokenForm.processing">
158+
<jet-danger-button class="ml-3" @click="deleteApiToken" :class="{ 'opacity-25': deleteApiTokenForm.processing }" :disabled="deleteApiTokenForm.processing">
159159
Delete
160160
</jet-danger-button>
161161
</template>

stubs/inertia/resources/js/Pages/Profile/Partials/DeleteUserForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
Cancel
4444
</jet-secondary-button>
4545

46-
<jet-danger-button class="ml-2" @click="deleteUser" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
46+
<jet-danger-button class="ml-3" @click="deleteUser" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
4747
Delete Account
4848
</jet-danger-button>
4949
</template>

stubs/inertia/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
Cancel
7878
</jet-secondary-button>
7979

80-
<jet-button class="ml-2" @click="logoutOtherBrowserSessions" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
80+
<jet-button class="ml-3" @click="logoutOtherBrowserSessions" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
8181
Log Out Other Browser Sessions
8282
</jet-button>
8383
</template>

stubs/inertia/resources/js/Pages/Teams/Partials/DeleteTeamForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Cancel
3535
</jet-secondary-button>
3636

37-
<jet-danger-button class="ml-2" @click="deleteTeam" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
37+
<jet-danger-button class="ml-3" @click="deleteTeam" :class="{ 'opacity-25': form.processing }" :disabled="form.processing">
3838
Delete Team
3939
</jet-danger-button>
4040
</template>

stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
Cancel
197197
</jet-secondary-button>
198198

199-
<jet-button class="ml-2" @click="updateRole" :class="{ 'opacity-25': updateRoleForm.processing }" :disabled="updateRoleForm.processing">
199+
<jet-button class="ml-3" @click="updateRole" :class="{ 'opacity-25': updateRoleForm.processing }" :disabled="updateRoleForm.processing">
200200
Save
201201
</jet-button>
202202
</template>
@@ -217,7 +217,7 @@
217217
Cancel
218218
</jet-secondary-button>
219219

220-
<jet-danger-button class="ml-2" @click="leaveTeam" :class="{ 'opacity-25': leaveTeamForm.processing }" :disabled="leaveTeamForm.processing">
220+
<jet-danger-button class="ml-3" @click="leaveTeam" :class="{ 'opacity-25': leaveTeamForm.processing }" :disabled="leaveTeamForm.processing">
221221
Leave
222222
</jet-danger-button>
223223
</template>
@@ -238,7 +238,7 @@
238238
Cancel
239239
</jet-secondary-button>
240240

241-
<jet-danger-button class="ml-2" @click="removeTeamMember" :class="{ 'opacity-25': removeTeamMemberForm.processing }" :disabled="removeTeamMemberForm.processing">
241+
<jet-danger-button class="ml-3" @click="removeTeamMember" :class="{ 'opacity-25': removeTeamMemberForm.processing }" :disabled="removeTeamMemberForm.processing">
242242
Remove
243243
</jet-danger-button>
244244
</template>

stubs/livewire/resources/views/api/api-token-manager.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full
140140
{{ __('Cancel') }}
141141
</x-jet-secondary-button>
142142

143-
<x-jet-button class="ml-2" wire:click="updateApiToken" wire:loading.attr="disabled">
143+
<x-jet-button class="ml-3" wire:click="updateApiToken" wire:loading.attr="disabled">
144144
{{ __('Save') }}
145145
</x-jet-button>
146146
</x-slot>
@@ -161,7 +161,7 @@ class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full
161161
{{ __('Cancel') }}
162162
</x-jet-secondary-button>
163163

164-
<x-jet-danger-button class="ml-2" wire:click="deleteApiToken" wire:loading.attr="disabled">
164+
<x-jet-danger-button class="ml-3" wire:click="deleteApiToken" wire:loading.attr="disabled">
165165
{{ __('Delete') }}
166166
</x-jet-danger-button>
167167
</x-slot>

0 commit comments

Comments
 (0)