From 09065dee388b51d30dd08840e4b11479a197d70b Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 4 Feb 2020 19:50:18 +0200 Subject: [PATCH] Table layout improvement --- .../attribute/attribute-table.component.html | 18 +++++----- .../attribute/attribute-table.component.scss | 6 ++-- .../entity/entities-table.component.html | 10 ++++-- .../entity/entities-table.component.ts | 18 +++++++--- .../table-columns-assignment.component.html | 8 ++--- .../table-columns-assignment.component.ts | 1 - .../relation/relation-table.component.html | 16 ++++----- .../manage-widget-actions.component.html | 12 +++---- .../lib/alarms-table-widget.component.html | 10 ++++-- .../lib/alarms-table-widget.component.ts | 8 ++--- .../lib/entities-table-widget.component.html | 8 +++-- .../lib/entities-table-widget.component.ts | 34 +++++++++---------- .../widget/lib/table-widget.models.ts | 11 ++++++ .../timeseries-table-widget.component.html | 8 +++-- ...age-dashboard-states-dialog.component.html | 10 +++--- .../rulechains-table-config.resolver.ts | 2 +- .../src/app/shared/models/page/page-link.ts | 6 ++++ ui-ngx/src/styles.scss | 15 ++++++++ 18 files changed, 128 insertions(+), 73 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html index a55261b5ff..9daadb8a80 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html +++ b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html @@ -137,7 +137,7 @@ - + @@ -151,26 +151,28 @@ - {{ 'attribute.last-update-time' | translate }} + {{ 'attribute.last-update-time' | translate }} {{ attribute.lastUpdateTs | date:'yyyy-MM-dd HH:mm:ss' }} - {{ 'attribute.key' | translate }} + {{ 'attribute.key' | translate }} {{ attribute.key }} - {{ 'attribute.value' | translate }} + {{ 'attribute.value' | translate }} - {{attribute.value}} - - edit - +
+ {{attribute.value}} + + edit + +
diff --git a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.scss b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.scss index e5cbdb8404..3d514fe063 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.scss @@ -54,9 +54,9 @@ mat-cell.tb-value-cell { cursor: pointer; mat-icon { - height: 16px; - width: 16px; - font-size: 16px; + height: 24px; + width: 24px; + font-size: 24px; color: #757575 } } diff --git a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html index 476410c463..1e5342a2b5 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html @@ -138,7 +138,7 @@ - + @@ -178,10 +178,14 @@ - + {{ entitiesTableConfig.actionsColumnTitle ? (entitiesTableConfig.actionsColumnTitle | translate) : '' }} - +