Fixed assignee cell height not matching row height in alarm entity table
This commit is contained in:
parent
a0c370079e
commit
7549e25969
@ -120,18 +120,11 @@ export class AlarmTableConfig extends EntityTableConfig<AlarmInfo, TimePageLink>
|
|||||||
color: alarmSeverityColors.get(entity.severity)
|
color: alarmSeverityColors.get(entity.severity)
|
||||||
})));
|
})));
|
||||||
this.columns.push(
|
this.columns.push(
|
||||||
new EntityTableColumn<AlarmInfo>('assignee', 'alarm.assignee', '200px',
|
new EntityTableColumn<AlarmInfo>('assignee', 'alarm.assignee', '240px',
|
||||||
(entity) => {
|
(entity) => {
|
||||||
return this.getAssigneeTemplate(entity)
|
return this.getAssigneeTemplate(entity)
|
||||||
},
|
},
|
||||||
(entity) => {
|
() => ({}),
|
||||||
return {
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'start',
|
|
||||||
alignItems: 'center',
|
|
||||||
height: 'inherit'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
false,
|
false,
|
||||||
() => ({}),
|
() => ({}),
|
||||||
(entity) => undefined,
|
(entity) => undefined,
|
||||||
@ -203,8 +196,10 @@ export class AlarmTableConfig extends EntityTableConfig<AlarmInfo, TimePageLink>
|
|||||||
<span class="user-display-name">${this.getUserDisplayName(entity)}</span>
|
<span class="user-display-name">${this.getUserDisplayName(entity)}</span>
|
||||||
</span>`
|
</span>`
|
||||||
:
|
:
|
||||||
`<mat-icon class="material-icons unassigned-icon">account_circle</mat-icon>
|
`<span class="unassigned-container">
|
||||||
<span>${this.translate.instant('alarm.unassigned')}</span>`
|
<mat-icon class="material-icons unassigned-icon">account_circle</mat-icon>
|
||||||
|
<span>${this.translate.instant('alarm.unassigned')}</span>
|
||||||
|
</span>`
|
||||||
}
|
}
|
||||||
</span>`
|
</span>`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,10 +21,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.assignee-cell {
|
.assignee-cell {
|
||||||
display: flex;
|
line-height: normal;
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
.assigned-container {
|
.assigned-container {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: baseline;
|
||||||
max-width: 180px;
|
max-width: 180px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -44,14 +44,19 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.material-icons.unassigned-icon {
|
.unassigned-container {
|
||||||
width: 28px;
|
display: inline-flex;
|
||||||
height: 28px;
|
align-items: center;
|
||||||
font-size: 28px;
|
.material-icons.unassigned-icon {
|
||||||
margin-right: 8px;
|
width: 28px;
|
||||||
color: rgba(0, 0, 0, 0.38);
|
height: 28px;
|
||||||
overflow: visible;
|
font-size: 28px;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: rgba(0, 0, 0, 0.38);
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user