From 112efc55c3814f1104711b3f887cc6ec83a2a509 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Sun, 30 Jun 2024 09:28:48 -0400 Subject: [PATCH 1/3] Adding ability to center the social providers --- config/devdojo/auth/descriptions.php | 1 + config/devdojo/auth/settings.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/devdojo/auth/descriptions.php b/config/devdojo/auth/descriptions.php index 0022926..59a18a0 100644 --- a/config/devdojo/auth/descriptions.php +++ b/config/devdojo/auth/descriptions.php @@ -13,6 +13,7 @@ 'dev_mode' => 'This is for development mode, when set in Dev Mode Assets will be loaded from Vite', 'enable_2fa' => 'Enable the ability for users to turn on Two Factor Authentication', 'login_show_social_providers' => 'Show the social providers login buttons on the login form', + 'center_align_social_provider_button_content' => 'Center align the content in the social provider button?', 'social_providers_location' => 'The location of the social provider buttons (top or bottom)', ], ]; diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php index 6838df8..e2eaa37 100644 --- a/config/devdojo/auth/settings.php +++ b/config/devdojo/auth/settings.php @@ -12,5 +12,6 @@ 'dev_mode' => false, 'enable_2fa' => false, // Enable or disable 2FA functionality globally 'login_show_social_providers' => true, - 'social_providers_location' => 'bottom', + 'center_align_social_provider_button_content' => false, + 'social_providers_location' => 'bottom' ]; From 368c9cb118f2d771c588c33f596441ceac7732b0 Mon Sep 17 00:00:00 2001 From: tnylea Date: Sun, 30 Jun 2024 13:29:10 +0000 Subject: [PATCH 2/3] Fixes coding style --- config/devdojo/auth/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php index e2eaa37..2ec576a 100644 --- a/config/devdojo/auth/settings.php +++ b/config/devdojo/auth/settings.php @@ -13,5 +13,5 @@ 'enable_2fa' => false, // Enable or disable 2FA functionality globally 'login_show_social_providers' => true, 'center_align_social_provider_button_content' => false, - 'social_providers_location' => 'bottom' + 'social_providers_location' => 'bottom', ]; From 373b7733d282d22f5a82ae471c0c1a2dd9b4cee9 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Sun, 30 Jun 2024 09:40:27 -0400 Subject: [PATCH 3/3] Adding ability to center align the social provider content --- resources/views/components/elements/social-button.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/components/elements/social-button.blade.php b/resources/views/components/elements/social-button.blade.php index b728865..5120068 100644 --- a/resources/views/components/elements/social-button.blade.php +++ b/resources/views/components/elements/social-button.blade.php @@ -1,4 +1,4 @@ - + @if(isset($provider->svg) && !empty(trim($provider->svg))) {!! $provider->svg !!}