diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.html b/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.html index 63cc2c3e31..eeaf0d40d9 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.html +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.html @@ -62,22 +62,20 @@ - - - - + + - - - {{ emptyMessage | abpLocalization }} - - + + {{ + emptyMessage | abpLocalization + }} + diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.scss b/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.scss index f2ce957862..98d4eb5811 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.scss +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/table/table.component.scss @@ -6,13 +6,11 @@ filter: brightness(90%); } - .ui-table-tbody > tr.empty-row:hover { - filter: none; - } - - .ui-table-tbody > tr.empty-row > div.empty-row-content { - padding: 10px; + .ui-table-empty { + padding: 20px 0; text-align: center; + border: 1px solid #e0e0e0; + border-top-width: 0; } .ui-table-caption, diff --git a/npm/ng-packs/packages/theme-shared/src/lib/tests/table.component.spec.ts b/npm/ng-packs/packages/theme-shared/src/lib/tests/table.component.spec.ts index 8ddc657a6c..d2bf2829c7 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/tests/table.component.spec.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/tests/table.component.spec.ts @@ -1,8 +1,7 @@ -import { createHostFactory, SpectatorHost } from '@ngneat/spectator/jest'; -import { PaginationComponent, TableComponent } from '../components'; - import { Pipe, PipeTransform } from '@angular/core'; import { NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap'; +import { createHostFactory, SpectatorHost } from '@ngneat/spectator/jest'; +import { PaginationComponent, TableComponent } from '../components'; @Pipe({ name: 'abpLocalization', @@ -40,7 +39,7 @@ describe('TableComponent', () => { }); it('should display the empty message', () => { - expect(spectator.query('tr.empty-row>div')).toHaveText( + expect(spectator.query('caption.ui-table-empty')).toHaveText( 'AbpAccount::NoDataAvailableInDatatable', ); });