mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix alignment of search result columns, should be left-aligned
Refs #228
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"NONE": "No results found for {{searchTerm}}",
|
||||
"ERROR": "An error occurred while running the search",
|
||||
"COLUMNS": {
|
||||
"NAME": "Name",
|
||||
"NAME": "Display name",
|
||||
"MODIFIED_BY": "Modified by",
|
||||
"MODIFIED_AT": "Modified at"
|
||||
}
|
||||
|
@@ -3,17 +3,15 @@
|
||||
<table data-automation-id="search_result_table" *ngIf="results && results.length && searchTerm" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<span class="mdl-data-table__cell--non-numeric"></span>
|
||||
<th class="mdl-data-table__cell--non-numeric"></th>
|
||||
<th class="mdl-data-table__cell--non-numeric">
|
||||
{{'SEARCH.RESULTS.COLUMNS.NAME' | translate}}
|
||||
</th>
|
||||
<th>
|
||||
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.NAME' | translate}}</span>
|
||||
<th class="mdl-data-table__cell--non-numeric">
|
||||
{{'SEARCH.RESULTS.COLUMNS.MODIFIED_BY' | translate}}
|
||||
</th>
|
||||
<th>
|
||||
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.MODIFIED_BY' | translate}}</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="mdl-data-table__cell--non-numeric">{{'SEARCH.RESULTS.COLUMNS.MODIFIED_AT' | translate}}</span>
|
||||
<th class="mdl-data-table__cell--non-numeric">
|
||||
{{'SEARCH.RESULTS.COLUMNS.MODIFIED_AT' | translate}}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -21,8 +19,10 @@
|
||||
|
||||
<tr *ngFor="let result of results; let idx = index" (click)="onItemClick(result, $event)">
|
||||
<td><img src="{{getMimeTypeIcon(result)}}" /></td>
|
||||
<td attr.data-automation-id=file_{{result.entry.name}} >{{result.entry.name}}</td>
|
||||
<td attr.data-automation-id=file_{{result.entry.name}}_{{result.entry.modifiedByUser.displayName}}>
|
||||
<td class="mdl-data-table__cell--non-numeric"
|
||||
attr.data-automation-id=file_{{result.entry.name}} >{{result.entry.name}}</td>
|
||||
<td class="mdl-data-table__cell--non-numeric"
|
||||
attr.data-automation-id=file_{{result.entry.name}}_{{result.entry.modifiedByUser.displayName}}>
|
||||
{{result.entry.modifiedByUser.displayName}}</td>
|
||||
<td>{{result.entry.modifiedAt | date}}</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user