RED-4819: Fixed file actions in workflow.

This commit is contained in:
Nicoleta Panaghiu 2022-08-25 14:50:45 +03:00
parent 73c502199c
commit 5263a1c40c

View File

@ -39,12 +39,7 @@ export class ExpandableFileActionsComponent implements OnChanges {
let count = 0;
if (this.maxWidth) {
count = Math.floor(this.maxWidth / 36) || 1;
} else {
this.displayedButtons = [...this.actions];
this.hiddenButtons = [];
}
if (this.minWidth <= 850) {
} else if (this.minWidth <= 850) {
count = Math.floor(this.minWidth / (this.actions.length * 15)) || 1;
if (this.minWidth <= 450) {
this.displayedButtons = [];