Skip to content

Commit d69f4b9

Browse files
committed
Revert back some style
1 parent fb6c934 commit d69f4b9

7 files changed

Lines changed: 46 additions & 40 deletions

File tree

resources/views/components/social-account.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
@if (isset($url))
1313
<a
1414
href="{{ $url }}"
15-
class="rounded-xs w-full max-w-24 bg-[#3d3530e6] px-3 py-2 text-center text-sm/4 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530]"
15+
class="rounded-xs w-full max-w-16 bg-[#3d3530e6] px-3 py-2 text-center text-xs/3 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530]"
1616
{{ $attributes }}
1717
>
1818
{{ $slot }}
1919
</a>
2020
@else
2121
<button
2222
type="button"
23-
class="rounded-xs w-full max-w-24 bg-[#3d3530e6] px-3 py-2 text-center text-sm/4 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530] disabled:bg-[#3d3530cc] disabled:hover:bg-[#3d3530cc]"
23+
class="rounded-xs w-full max-w-16 bg-[#3d3530e6] px-3 py-2 text-center text-xs/3 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530] disabled:bg-[#3d3530cc] disabled:hover:bg-[#3d3530cc]"
2424
@if ($email == '-') disabled @endif
2525
{{ $attributes }}
2626
>

resources/views/livewire/passport/create-client.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class="inset-e-0 rounded-r-xs absolute inset-y-0 flex rounded-l-none bg-[#B85450
9797

9898
<x-button
9999
type="submit"
100-
class="xs:max-w-34 ml-auto w-full"
100+
class="xs:max-w-30 ml-auto w-full text-xs/3"
101101
>
102102
Create Client
103103
</x-button>

resources/views/livewire/passport/home.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<x-anchor-button
1414
href="{{ route('passport.create.client') }}"
15-
class="xs:max-w-30 w-full"
15+
class="xs:max-w-30 w-full text-xs/3"
1616
wire:navigate
1717
>
1818

resources/views/livewire/profile.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class="cursor-pointer hover:underline"
6767

6868
<x-button
6969
type="submit"
70-
class="xs:max-w-34 ml-auto w-full"
70+
class="xs:max-w-30 ml-auto w-full text-xs/3"
7171
>
7272
Update Profile
7373
</x-button>
@@ -156,7 +156,7 @@ class="sm:col-span-2"
156156

157157
<x-button
158158
type="submit"
159-
class="xs:max-w-34 ml-auto w-full"
159+
class="xs:max-w-30 ml-auto w-full text-xs/3"
160160
>
161161
Delete Account
162162
</x-button>

resources/views/livewire/security/home.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class="sm:col-span-2"
3838

3939
<x-button
4040
type="submit"
41-
class="xs:max-w-34 ml-auto w-full"
41+
class="xs:max-w-30 ml-auto w-full text-xs/3"
4242
>
4343
{{ $user->passwordless ? 'Create' : 'Change' }} Password
4444
</x-button>
@@ -61,7 +61,7 @@ class="xs:max-w-34 ml-auto w-full"
6161

6262
<x-anchor-button
6363
href="{{ route('security.2fa') }}"
64-
class="xs:max-w-34 ml-auto w-full"
64+
class="xs:max-w-30 ml-auto w-full text-xs/3"
6565
wire:navigate
6666
>
6767
Manage 2FA

resources/views/livewire/security/two-factor.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929

3030
<x-button
31-
class="xs:max-w-34 ml-auto w-full"
31+
class="xs:max-w-30 ml-auto w-full text-xs/3"
3232
wire:click="regenerateRecoveryCodes"
3333
wire:loading.attr="disabled"
3434
>
@@ -52,7 +52,7 @@ class="xs:max-w-34 ml-auto w-full"
5252
</div>
5353

5454
<x-button
55-
class="xs:max-w-34 ml-auto w-full"
55+
class="xs:max-w-30 ml-auto w-full text-xs/3"
5656
wire:click="disableTwoFactor"
5757
wire:loading.attr="disabled"
5858
>
@@ -105,7 +105,7 @@ class="xs:max-w-84 xs:flex-row flex w-full flex-col items-end gap-x-2 gap-y-4"
105105

106106
<x-button
107107
type="submit"
108-
class="text-xs/3.5 xs:max-w-20 w-full"
108+
class="xs:max-w-20 w-full text-sm/4"
109109
x-bind:disabled="$wire.code.length < 6"
110110
>
111111
Verify

resources/views/livewire/users/profile.blade.php

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,50 @@ class="size-24 rounded-full"
4040

4141
<x-button
4242
type="submit"
43-
class="xs:max-w-34 ml-auto w-full"
43+
class="xs:max-w-30 ml-auto w-full text-xs/3"
4444
>
4545
Update Profile
4646
</x-button>
4747
</x-form>
4848
</div>
4949

50-
<x-separator />
50+
@if ($socials_google || $socials_github)
51+
<x-separator />
5152

52-
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
53-
<div class="block">
54-
<div class="text-lg/4.5 font-bold">
55-
Social Accounts
56-
</div>
53+
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
54+
<div class="block">
55+
<div class="text-lg/4.5 font-bold">
56+
Social Accounts
57+
</div>
5758

58-
<div class="text-[0.9375rem]/4.5 mt-1">
59-
Manage user linking social accounts
59+
<div class="text-[0.9375rem]/4.5 mt-1">
60+
Manage user linking social accounts
61+
</div>
6062
</div>
61-
</div>
62-
63-
<div class="flex flex-col gap-4 sm:col-span-2">
64-
<x-social-account
65-
name="Google"
66-
email="{{ $socials_google ? $socials_google->email : '-' }}"
67-
wire:click="unlinkSocialAccount('google')"
68-
>
69-
{{ $socials_google ? 'Unlink' : 'Not Linked' }}
70-
</x-social-account>
7163

72-
<x-social-account
73-
name="GitHub"
74-
email="{{ $socials_github ? $socials_github->email : '-' }}"
75-
wire:click="unlinkSocialAccount('github')"
76-
>
77-
{{ $socials_github ? 'Unlink' : 'Not Linked' }}
78-
</x-social-account>
64+
<div class="flex flex-col gap-4 sm:col-span-2">
65+
@if ($socials_google)
66+
<x-social-account
67+
name="Google"
68+
email="{{ $socials_google->email }}"
69+
wire:click="unlinkSocialAccount('google')"
70+
>
71+
Unlink
72+
</x-social-account>
73+
@endif
74+
75+
@if ($socials_github)
76+
<x-social-account
77+
name="GitHub"
78+
email="{{ $socials_github->email }}"
79+
wire:click="unlinkSocialAccount('github')"
80+
>
81+
Unlink
82+
</x-social-account>
83+
@endif
84+
</div>
7985
</div>
80-
</div>
86+
@endif
8187

8288
@if ($canManageTwoFactor)
8389
@if ($twoFactorEnabled)
@@ -97,7 +103,7 @@ class="xs:max-w-34 ml-auto w-full"
97103
</div>
98104

99105
<x-button
100-
class="xs:max-w-34 ml-auto w-full"
106+
class="xs:max-w-30 ml-auto w-full text-xs/3"
101107
wire:click="disableTwoFactor"
102108
wire:loading.attr="disabled"
103109
>
@@ -121,7 +127,7 @@ class="xs:max-w-34 ml-auto w-full"
121127
</div>
122128

123129
<x-button
124-
class="xs:max-w-34 ml-auto w-full"
130+
class="xs:max-w-30 ml-auto w-full text-xs/3"
125131
wire:click="deleteAccount"
126132
wire:confirm="Are you sure to delete your account? This action can't be undone!"
127133
wire:loading.attr="disabled"

0 commit comments

Comments
 (0)