Browse Source

Merge pull request #16259 from mtsymbarov-del/fix/alarm-details-outline-inputs

Applied outline appearance to inputs in Alarm details dialog
pull/16270/head
Maksym Tsymbarov 2 months ago
committed by GitHub
parent
commit
e8dc5bdc3d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html
  2. 12
      ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html
  3. 16
      ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss

2
ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html

@ -4,7 +4,7 @@
SPDX-License-Identifier: Apache-2.0
-->
<mat-form-field class="mat-block flex-1" style="margin-bottom: 25px"
<mat-form-field class="mat-block flex-1" appearance="outline" style="margin-bottom: 25px"
(click)="openAlarmAssigneePanel($event, alarm)"
subscriptSizing="dynamic">
<mat-label translate>alarm.assignee</mat-label>

12
ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html

@ -25,11 +25,11 @@
<div mat-dialog-content>
<fieldset [disabled]="isLoading$ | async" style="margin-bottom: 22px">
<div class="flex flex-row gap-1.5">
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.originator</mat-label>
<input matInput formControlName="originatorName" readonly>
</mat-form-field>
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.severity</mat-label>
<input matInput formControlName="alarmSeverity" readonly
style="font-weight: bold"
@ -38,24 +38,24 @@
</div>
<div class="flex flex-row gap-1.5">
@if (alarmFormGroup.get('startTime').value) {
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.start-time</mat-label>
<input matInput formControlName="startTime" readonly>
</mat-form-field>
}
@if (alarmFormGroup.get('duration').value) {
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.duration</mat-label>
<input matInput formControlName="duration" readonly>
</mat-form-field>
}
</div>
<div class="flex flex-row gap-1.5">
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.type</mat-label>
<input matInput formControlName="type" readonly>
</mat-form-field>
<mat-form-field class="mat-block flex-1">
<mat-form-field class="mat-block flex-1" appearance="outline">
<mat-label translate>alarm.status</mat-label>
<input matInput formControlName="alarmStatus" readonly>
</mat-form-field>

16
ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss

@ -1,22 +1,6 @@
// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
// SPDX-License-Identifier: Apache-2.0
:host ::ng-deep {
.assignee-field {
.mat-form-field-label-wrapper {
overflow: visible;
left: -36px;
}
.user-avatar {
min-width: 28px;
min-height: 28px;
margin-right: 8px;
border-radius: 50%;
font-weight: 700;
color: #fff;
font-size: 13px;
line-height: normal;
}
}
.mat-expansion-panel {
&.tb-alarm-details {
box-shadow: none;

Loading…
Cancel
Save