RED-8841: show 10 items instead of 5 in bulk-delete dialog.

This commit is contained in:
Nicoleta Panaghiu 2024-03-25 11:14:08 +02:00
parent b314d6fb17
commit f0ce6aadb1
2 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@
class="dialog-header heading-l"
></div>
<div class="dialog-content redaction">
<div [ngStyle]="{ height: dialogContentHeight + redactedTextsAreaHeight + 'px' }" class="dialog-content redaction">
<div *ngIf="!isImage" class="iqser-input-group">
<label
[translateParams]="typeTranslationArg"
@ -18,7 +18,7 @@
<cdk-virtual-scroll-viewport
*ngIf="data.redactions.length > 1; else singleSelected"
[itemSize]="16"
[ngStyle]="{ height: redactedTexts.length <= 5 ? 16 * redactedTexts.length + 'px' : 80 + 'px' }"
[ngStyle]="{ height: redactedTextsAreaHeight + 'px' }"
>
<ul *cdkVirtualFor="let text of redactedTexts; let idx = index">
<li

View File

@ -66,6 +66,14 @@ export class RemoveRedactionDialogComponent extends IqserDialogComponent<
return this.data.redactions.length > 1;
}
get redactedTextsAreaHeight() {
return this.redactedTexts.length <= 10 ? 16 * this.redactedTexts.length : 160;
}
get dialogContentHeight() {
return this.options.length * 75 + 230;
}
save(): void {
this.close(this.form.getRawValue());
}