SK: Align column headers according to settings
authorNoah Miller <nm@lemnisc.us>
Tue, 26 Sep 2023 04:39:58 +0000 (00:39 -0400)
committerNoah Miller <nm@lemnisc.us>
Tue, 3 Oct 2023 19:30:15 +0000 (15:30 -0400)
ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.html

index 81cfafe4a1ac611ddab6220b305b4488d8933e4f..5ca040d1f6a04610f648ef45b2f3c2f216eab646 100644 (file)
@@ -11,7 +11,7 @@
       <tr>
         <th ng-class="{'crm-search-result-select': $ctrl.settings.actions}" ng-include="'~/crmSearchDisplayTable/crmSearchDisplayTaskHeader.html'" ng-if=":: $ctrl.hasExtraFirstColumn()">
         </th>
-        <th ng-repeat="col in $ctrl.settings.columns" ng-click="$ctrl.setSort(col, $event)" class="{{:: $ctrl.isSortable(col) ? 'crm-sortable-col' : ''}}" title="{{:: $ctrl.isSortable(col) ? ts('Click to sort results (shift-click to sort by multiple).') : '' }}">
+        <th ng-repeat="col in $ctrl.settings.columns" ng-click="$ctrl.setSort(col, $event)" class="{{:: $ctrl.isSortable(col) ? 'crm-sortable-col' : ''}} {{:: col.alignment }}" title="{{:: $ctrl.isSortable(col) ? ts('Click to sort results (shift-click to sort by multiple).') : '' }}">
           <i ng-if=":: $ctrl.isSortable(col)" class="crm-i crm-search-table-column-sort-icon {{ $ctrl.getSort(col) }}"></i>
           <span class="crm-search-display-table-column-label">{{:: col.label }}</span>
         </th>