Do not highlight empty last column in embedded tables

pull/8061/head
Henriette Dinger 5 years ago
parent d705859e5f
commit 193ee85771
  1. 8
      frontend/src/app/components/wp-table/wp-table.directive.html

@ -4,7 +4,9 @@
<colgroup> <colgroup>
<col *ngIf="configuration.dragAndDropEnabled"> <col *ngIf="configuration.dragAndDropEnabled">
<!-- Generate col elements dynamically(!) for each requested column plus one for the action menu's column. --> <!-- Generate col elements dynamically(!) for each requested column plus one for the action menu's column. -->
<col highlight-col *ngFor="let column of [].constructor(columns.length + 1)"> <col highlight-col *ngFor="let column of [].constructor(columns.length)">
<col highlight-col *ngIf="configuration.columnMenuEnabled">
<col *ngIf="!configuration.columnMenuEnabled">
</colgroup> </colgroup>
<caption class="hidden-for-sighted"> <caption class="hidden-for-sighted">
<span>{{text.tableSummary}}</span> <span>{{text.tableSummary}}</span>
@ -31,8 +33,8 @@
</th> </th>
<th class="wp-table--configuration-modal--trigger wp-table--context-menu-th -short hide-when-print" <th class="wp-table--configuration-modal--trigger wp-table--context-menu-th -short hide-when-print"
*ngIf="configuration.columnMenuEnabled || configuration.actionsColumnEnabled"> *ngIf="configuration.columnMenuEnabled || configuration.actionsColumnEnabled">
<div class="generic-table--sort-header-outer"> <div class="generic-table--sort-header-outer" *ngIf="configuration.columnMenuEnabled">
<wp-table-config-menu *ngIf="configuration.columnMenuEnabled"> <wp-table-config-menu>
</wp-table-config-menu> </wp-table-config-menu>
</div> </div>
</th> </th>

Loading…
Cancel
Save