We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f3ad7 commit 79280d5Copy full SHA for 79280d5
src/bundle/Resources/public/js/scripts/quick.action.manager.js
@@ -1,4 +1,5 @@
1
(function (global) {
2
+ const ACTION_BTN_VERTICAL_SPACING = 4.3;
3
let actionButtonConfigs = [];
4
5
const registerButton = (config) => {
@@ -35,7 +36,7 @@
35
36
container.style.right = '2rem';
37
container.style.zIndex = buttonConfig.zIndex || 1040;
38
- const bottomPosition = `${index === 0 ? 2 : index * 3.8 + 2 + index * 0.5}rem`;
39
+ const bottomPosition = `${index * ACTION_BTN_VERTICAL_SPACING + 2}rem`;
40
41
container.style.bottom = bottomPosition;
42
});
0 commit comments