fixed permission row height

This commit is contained in:
Wojciech Duda 2024-10-21 15:48:57 +02:00 committed by VitoAlbano
parent 23f90a31ef
commit 58010adabc
2 changed files with 6 additions and 4 deletions

View File

@ -3,8 +3,9 @@
.adf-role-selector-field#{$mat-form-field} {
width: 100%;
max-width: 200px;
height: 40px;
#{$mat-form-field-flex} {
height: 40px;
#{$mat-form-field-infix}:not(:disabled) {
padding-top: 8px;
}
}

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewEncapsulation } from '@angular/core';
import { RoleModel } from '../../models/role.model';
import { CommonModule } from '@angular/common';
import { MatFormFieldModule } from '@angular/material/form-field';
@ -32,7 +32,7 @@ export interface RoleModelOption {
standalone: true,
imports: [CommonModule, MatFormFieldModule, MatSelectModule, TranslateModule],
template: `
<mat-form-field class="adf-role-selector-field" *ngIf="!readonly">
<mat-form-field class="adf-role-selector-field" *ngIf="!readonly" subscriptSizing="dynamic">
<mat-select
class="adf-role-selector"
(click)="$event.stopPropagation()"
@ -52,6 +52,7 @@ export interface RoleModelOption {
{{ i18nValue | translate }}
</span>
`,
encapsulation: ViewEncapsulation.None,
host: { class: 'adf-user-role-column adf-datatable-content-cell adf-expand-cell-4' },
styleUrls: ['./user-role-column.component.scss']
})