[ACS-7330] edit rules dialog fixes (#3723)

This commit is contained in:
Mykyta Maliarchuk
2024-03-25 08:11:45 +01:00
committed by MichalKinas
parent cecf965284
commit 8eba510051
8 changed files with 21 additions and 22 deletions

View File

@@ -49,7 +49,7 @@
z-index: 1; z-index: 1;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: flex-start; align-items: center;
overflow-x: auto; overflow-x: auto;
justify-content: space-between; justify-content: space-between;
padding: 12px 20px; padding: 12px 20px;

View File

@@ -27,7 +27,7 @@
</mat-menu> </mat-menu>
</div> </div>
<button mat-button data-automation-id="rule-action-list-add-action-button" (click)="addAction()" *ngIf="!readOnly"> <button mat-flat-button data-automation-id="rule-action-list-add-action-button" (click)="addAction()" *ngIf="!readOnly">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.ACTION_BUTTONS.ADD_ACTION' | translate }}</span> <span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.ACTION_BUTTONS.ADD_ACTION' | translate }}</span>
</button> </button>

View File

@@ -4,13 +4,22 @@
flex-direction: row; flex-direction: row;
gap: 20px; gap: 20px;
adf-card-view .adf-property-list .adf-property adf-card-view-item-dispatcher adf-card-view-textitem { adf-card-view {
display: inline-block; margin-top: -15px;
width: 300px;
.adf-property-list .adf-property adf-card-view-item-dispatcher adf-card-view-textitem {
display: inline-block;
width: 300px;
.adf-textitem-clickable {
padding-top: 0;
}
}
} }
} }
&-full-width { &-full-width {
height: fit-content;
flex: 1; flex: 1;
} }
} }

View File

@@ -56,11 +56,11 @@
</div> </div>
<div class="aca-rule-composite-condition__form__actions" *ngIf="!readOnly" data-automation-id="add-actions"> <div class="aca-rule-composite-condition__form__actions" *ngIf="!readOnly" data-automation-id="add-actions">
<button mat-button (click)="addSimpleCondition()" data-automation-id="add-condition-button"> <button mat-flat-button (click)="addSimpleCondition()" data-automation-id="add-condition-button">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_CONDITION' | translate }}</span> <span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_CONDITION' | translate }}</span>
</button> </button>
<button mat-button (click)="addCompositeCondition()" data-automation-id="add-group-button"> <button mat-flat-button (click)="addCompositeCondition()" data-automation-id="add-group-button">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_GROUP' | translate }}</span> <span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_GROUP' | translate }}</span>
</button> </button>

View File

@@ -26,7 +26,8 @@
gap: 8px; gap: 8px;
& > :nth-child(1) { & > :nth-child(1) {
width: 5em; width: 7em;
height: fit-content;
font-size: inherit; font-size: inherit;
} }

View File

@@ -3,12 +3,9 @@
} }
.aca-edit-rule-dialog { .aca-edit-rule-dialog {
margin: -24px;
&__header { &__header {
display: flex; display: flex;
align-items: center; align-items: center;
margin: -43px -24px 0;
padding: var(--edit-rule-dialog-padding); padding: var(--edit-rule-dialog-padding);
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid var(--theme-border-color); border-bottom: 1px solid var(--theme-border-color);
@@ -26,20 +23,18 @@
} }
} }
&__content { .aca-edit-rule-dialog__content {
margin: 0 -24px; color: inherit;
padding: 0; padding: 0;
&__spinner { &__spinner {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 20px 0;
} }
} }
&__footer { &__footer {
margin: 0 -24px -43px;
padding: var(--edit-rule-dialog-padding); padding: var(--edit-rule-dialog-padding);
box-sizing: border-box; box-sizing: border-box;
border-top: 1px solid var(--theme-border-color); border-top: 1px solid var(--theme-border-color);

View File

@@ -1,7 +1,7 @@
<form class="aca-rule-details__form" [ngClass]="{ 'aca-read-only': readOnly }" [formGroup]="form"> <form class="aca-rule-details__form" [ngClass]="{ 'aca-read-only': readOnly }" [formGroup]="form">
<ng-container *ngIf="!preview"> <ng-container *ngIf="!preview">
<div class="aca-rule-details__form__row aca-rule-details__form__name"> <div class="aca-rule-details__form__row">
<label for="rule-details-name-input">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.NAME' | translate }}</label> <label for="rule-details-name-input">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.NAME' | translate }}</label>
<div> <div>
<mat-form-field floatLabel='auto' class="aca-rule-details__form__row__field"> <mat-form-field floatLabel='auto' class="aca-rule-details__form__row__field">

View File

@@ -6,11 +6,6 @@
padding: 8px 20px; padding: 8px 20px;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow-x: auto;
&.aca-rule-details__form__name {
padding-bottom: 0;
}
&.aca-rule-details__form__description { &.aca-rule-details__form__description {
padding-top: 0; padding-top: 0;
@@ -40,7 +35,6 @@
&__field { &__field {
width: 100%; width: 100%;
max-width: 400px; max-width: 400px;
margin-top: -11px;
font-size: inherit; font-size: inherit;
&__textarea { &__textarea {