diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html index 2213be1835..9829e8c436 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html @@ -27,12 +27,12 @@ [displayWith]="displayUserFn" (optionSelected)="selected($event)" panelWidth="260px"> - + account_circle - alarm.unassigned + alarm.unassigned - + diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.scss b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.scss index c76aedbb18..971e0abd55 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.scss +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.scss @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + :host { width: 100%; overflow: auto; @@ -26,7 +27,6 @@ padding-top: 8px; height: 340px; font-size: 14px; - background-color: #fff; .mat-form-field-wrapper { margin-right: 8px; @@ -44,17 +44,12 @@ } .tb-assignee-autocomplete { - &.tb-assignee-autocomplete.mat-autocomplete-visible { position: relative; left: -8px; margin-top: 8px; box-shadow: none !important; } - .assigned { - background-color: rgba(0, 0, 0, 0.06); - } - .mat-option { font-size: 14px; border: none; @@ -84,8 +79,8 @@ } .user-display-name { max-width: 180px; + overflow: hidden; span { - white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.ts b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.ts index 32d6c2a1da..2cf382afcf 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.ts +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.ts @@ -119,7 +119,7 @@ export class AlarmAssigneePanelComponent implements OnInit, AfterViewInit, OnDe } selected(event: MatAutocompleteSelectedEvent): void { - this.selectUserFormGroup.get('user').patchValue(''); + this.clear(); const user: User = event.option.value; if (user) { this.assign(user); diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-table-config.ts b/ui-ngx/src/app/modules/home/components/alarm/alarm-table-config.ts index 645841f188..dc7f990f23 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-table-config.ts +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-table-config.ts @@ -249,7 +249,7 @@ export class AlarmTableConfig extends EntityTableConfig const connectedPosition: ConnectedPosition = { originX: 'end', originY: 'bottom', - overlayX: 'center', + overlayX: 'end', overlayY: 'top' }; config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts index 32f5c5b014..6d6d27e6e7 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.ts @@ -1115,7 +1115,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, const connectedPosition: ConnectedPosition = { originX: 'end', originY: 'bottom', - overlayX: 'center', + overlayX: 'end', overlayY: 'top' }; config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement) diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index f5d790b618..0595e4b2b2 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -4757,7 +4757,7 @@ "display-alarm-details": "Display alarm details", "allow-alarms-ack": "Allow alarms acknowledgment", "allow-alarms-clear": "Allow alarms clear", - "display-alarm-comments": "Display alarm comments" + "display-alarm-comments": "Display alarm comments", "allow-alarms-assign": "Allow alarms assignment" }, "value-source": {