From 0c2434fa400f0fc138ce985053da6f555cd1bb48 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 5 Feb 2022 13:16:27 -0800 Subject: [PATCH] authx.setting.php - Change sizes and weights to make settings more readable --- ext/authx/settings/authx.setting.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ext/authx/settings/authx.setting.php b/ext/authx/settings/authx.setting.php index 63af33ec37..464c1ac7c0 100644 --- a/ext/authx/settings/authx.setting.php +++ b/ext/authx/settings/authx.setting.php @@ -35,7 +35,7 @@ $_authx_settings = function() { 'html_type' => 'Select', 'html_attributes' => [ 'multiple' => 1, - 'class' => 'crm-select2', + 'class' => 'huge crm-select2', ], 'default' => ['site_key', 'perm'], 'title' => ts('Authentication guard'), @@ -54,15 +54,14 @@ $_authx_settings = function() { 'html_type' => 'Select', 'html_attributes' => [ 'multiple' => 1, - 'class' => 'crm-select2', + 'class' => 'huge crm-select2', ], 'default' => ['jwt'], 'title' => ts('Acceptable credentials (%1)', [1 => $flow]), - 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getCredentialTypes'], ], - 'settings_pages' => ['authx' => ['weight' => $weight]], + 'settings_pages' => ['authx' => ['weight' => 1000 + $weight]], ]; $s["authx_{$flow}_user"] = $basic + [ 'name' => "authx_{$flow}_user", @@ -70,7 +69,7 @@ $_authx_settings = function() { 'quick_form_type' => 'Select', 'html_type' => 'Select', 'html_attributes' => [ - 'class' => 'crm-select2', + 'class' => 'huge crm-select2', ], 'default' => 'optional', 'title' => ts('User account requirements (%1)', [1 => $flow]), @@ -78,7 +77,7 @@ $_authx_settings = function() { 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getUserModes'], ], - 'settings_pages' => ['authx' => ['weight' => $weight + 5]], + 'settings_pages' => ['authx' => ['weight' => 2000 + $weight]], ]; } -- 2.25.1