SearchKit - Set button size default to `btn-xs` to match existing UI elements
authorColeman Watts <coleman@civicrm.org>
Fri, 14 Oct 2022 21:36:01 +0000 (17:36 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 15 Oct 2022 19:53:48 +0000 (15:53 -0400)
For buttons in a table, `xs` generally fits the best, so let's make that the default.

ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php
ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php
ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js

index 013a5f189b3d7947538e27902aac43b7a07a3f79..8117c5da3faee090923123a434d48b510e7f3e9a 100644 (file)
@@ -108,7 +108,7 @@ return [
               'editable' => TRUE,
             ],
             [
-              'size' => 'btn-sm',
+              'size' => 'btn-xs',
               'links' => [
                 [
                   'entity' => 'ContactType',
index 66d63161689ae76eeefec289e40c9bdd32f9a683..73c9b6338a53a8374fc7947872e492635b751eba 100644 (file)
@@ -98,7 +98,7 @@ return [
               'editable' => TRUE,
             ],
             [
-              'size' => 'btn-sm',
+              'size' => 'btn-xs',
               'links' => [
                 [
                   'entity' => 'RelationshipType',
index 9299cd79ab69e0bb1a3ad27c0289756e7369dd4e..6e78b8446de8cc0c84aea117eba85139ea381b75 100644 (file)
@@ -54,7 +54,7 @@
           label: ts('Buttons'),
           icon: 'fa-square-o',
           defaults: {
-            size: 'btn-sm',
+            size: 'btn-xs',
             links: []
           }
         },