diff --git a/ui-ngx/src/app/core/services/menu.models.ts b/ui-ngx/src/app/core/services/menu.models.ts index 27a1d81e2b..4c2f237ec2 100644 --- a/ui-ngx/src/app/core/services/menu.models.ts +++ b/ui-ngx/src/app/core/services/menu.models.ts @@ -24,7 +24,6 @@ export interface MenuSection extends HasUUID{ path: string; icon: string; isMdiIcon?: boolean; - height?: string; pages?: Array; opened?: boolean; disabled?: boolean; diff --git a/ui-ngx/src/app/core/services/menu.service.ts b/ui-ngx/src/app/core/services/menu.service.ts index 9f160a40bf..4d8455b8d6 100644 --- a/ui-ngx/src/app/core/services/menu.service.ts +++ b/ui-ngx/src/app/core/services/menu.service.ts @@ -58,8 +58,8 @@ export class MenuService { let homeSections: Array; switch (authState.authUser.authority) { case Authority.SYS_ADMIN: - this.currentMenuSections = this.buildSysAdminMenu(authState); - homeSections = this.buildSysAdminHome(authState); + this.currentMenuSections = this.buildSysAdminMenu(); + homeSections = this.buildSysAdminHome(); break; case Authority.TENANT_ADMIN: this.currentMenuSections = this.buildTenantAdminMenu(authState); @@ -87,7 +87,7 @@ export class MenuService { ); } - private buildSysAdminMenu(authState: AuthState): Array { + private buildSysAdminMenu(): Array { const sections: Array = []; sections.push( { @@ -117,7 +117,6 @@ export class MenuService { name: 'admin.resources', type: 'toggle', path: '/resources', - height: '80px', icon: 'folder', pages: [ { @@ -180,7 +179,6 @@ export class MenuService { name: 'security.security', type: 'toggle', path: '/security-settings', - height: '120px', icon: 'security', pages: [ { @@ -212,7 +210,7 @@ export class MenuService { return sections; } - private buildSysAdminHome(authState: AuthState): Array { + private buildSysAdminHome(): Array { const homeSections: Array = []; homeSections.push( { @@ -320,7 +318,6 @@ export class MenuService { name: 'entity.entities', type: 'toggle', path: '/entities', - height: '120px', icon: 'category', pages: [ { @@ -351,7 +348,6 @@ export class MenuService { name: 'profiles.profiles', type: 'toggle', path: '/profiles', - height: '80px', icon: 'badge', pages: [ { @@ -387,7 +383,6 @@ export class MenuService { name: 'edge.management', type: 'toggle', path: '/edgeManagement', - height: '80px', icon: 'settings_input_antenna', pages: [ { @@ -414,7 +409,6 @@ export class MenuService { name: 'feature.advanced-features', type: 'toggle', path: '/features', - height: '120px', icon: 'construction', pages: [ { @@ -445,7 +439,6 @@ export class MenuService { name: 'admin.resources', type: 'toggle', path: '/resources', - height: '80px', icon: 'folder', pages: [ { @@ -554,7 +547,6 @@ export class MenuService { name: 'security.security', type: 'toggle', path: '/security-settings', - height: '40px', icon: 'security', pages: [ { @@ -759,7 +751,6 @@ export class MenuService { name: 'entity.entities', type: 'toggle', path: '/entities', - height: '120px', icon: 'category', pages: [ { 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 48a42f32be..089db1e98d 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 @@ -16,7 +16,7 @@ -->
-
+
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 7d4caace8f..67bf37453a 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 @@ -24,6 +24,13 @@ width: 100%; height: 100%; background: #fff; + overflow: hidden; + + &.tb-outlined-border { + box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); + border: solid 1px #e0e0e0; + border-radius: 4px; + } .mat-toolbar-tools{ min-height: auto; 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 b4630cd1f7..5459311c6a 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 @@ -34,7 +34,7 @@
-
+
diff --git a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.scss b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.scss index dd5fb91f72..f90f9c9f8f 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.scss @@ -29,6 +29,13 @@ width: 100%; height: 100%; background: #fff; + overflow: hidden; + + &.tb-outlined-border { + box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); + border: solid 1px #e0e0e0; + border-radius: 4px; + } .mat-toolbar-tools{ min-height: auto; diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html index 6b65337ccf..c96b22a1cc 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html @@ -16,7 +16,7 @@ -->
-
+
diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.scss b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.scss index cd2415ba3e..e39d275075 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.scss @@ -24,6 +24,13 @@ width: 100%; height: 100%; background: #fff; + overflow: hidden; + + &.tb-outlined-border { + box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); + border: solid 1px #e0e0e0; + border-radius: 4px; + } .mat-toolbar-tools{ min-height: auto; diff --git a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html index 33dd66bed7..3551876c06 100644 --- a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html @@ -16,7 +16,7 @@ -->
-
+
diff --git a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss index 859a2f0a42..b0fb63467b 100644 --- a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss @@ -31,6 +31,13 @@ width: 100%; height: 100%; background: #fff; + overflow: hidden; + + &.tb-outlined-border { + box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); + border: solid 1px #e0e0e0; + border-radius: 4px; + } .mat-toolbar-tools{ min-height: auto; diff --git a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.html b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.html index 9435e0d739..7a85c37973 100644 --- a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.html @@ -16,7 +16,7 @@ -->
-
+
widget-config.actions diff --git a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.scss b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.scss index fa5367b4c7..a42feda512 100644 --- a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions.component.scss @@ -22,6 +22,13 @@ width: 100%; height: 100%; background: #fff; + overflow: hidden; + + &.tb-outlined-border { + box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); + border: solid 1px #e0e0e0; + border-radius: 4px; + } .tb-entity-table-title { padding-right: 20px; diff --git a/ui-ngx/src/app/modules/home/menu/menu-link.component.html b/ui-ngx/src/app/modules/home/menu/menu-link.component.html index fb79fde48c..ab5b1faa27 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-link.component.html +++ b/ui-ngx/src/app/modules/home/menu/menu-link.component.html @@ -16,7 +16,7 @@ --> - {{section.icon}} - + {{section.icon}} + {{section.name | translate}} diff --git a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html index cb7e3d4b73..de4f16b163 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html +++ b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html @@ -16,8 +16,8 @@ --> - {{section.icon}} - + {{section.icon}} + {{section.name | translate}} diff --git a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts index fdab1ca7a3..70d711469a 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts +++ b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts @@ -40,7 +40,7 @@ export class MenuToggleComponent implements OnInit { sectionHeight(): string { if (this.section.opened) { - return this.section.height; + return this.section.pages.length * 40 + 'px'; } else { return '0px'; } diff --git a/ui-ngx/src/app/modules/home/menu/side-menu.component.scss b/ui-ngx/src/app/modules/home/menu/side-menu.component.scss index 54cbf11c53..533c1e2fea 100644 --- a/ui-ngx/src/app/modules/home/menu/side-menu.component.scss +++ b/ui-ngx/src/app/modules/home/menu/side-menu.component.scss @@ -63,6 +63,7 @@ white-space: nowrap; display: inline-flex; & > span { + letter-spacing: .03125em; overflow: hidden; text-overflow: ellipsis; }