RED-8841: show 10 items instead of 5 in bulk-delete dialog.
This commit is contained in:
parent
b314d6fb17
commit
f0ce6aadb1
@ -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
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user