Skip to content

Commit 79280d5

Browse files
albozekpawlakadrian
authored andcommitted
After review pt 2
1 parent a2f3ad7 commit 79280d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bundle/Resources/public/js/scripts/quick.action.manager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(function (global) {
2+
const ACTION_BTN_VERTICAL_SPACING = 4.3;
23
let actionButtonConfigs = [];
34

45
const registerButton = (config) => {
@@ -35,7 +36,7 @@
3536
container.style.right = '2rem';
3637
container.style.zIndex = buttonConfig.zIndex || 1040;
3738

38-
const bottomPosition = `${index === 0 ? 2 : index * 3.8 + 2 + index * 0.5}rem`;
39+
const bottomPosition = `${index * ACTION_BTN_VERTICAL_SPACING + 2}rem`;
3940

4041
container.style.bottom = bottomPosition;
4142
});

0 commit comments

Comments
 (0)