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 2212dcb commit 7fb1b66Copy full SHA for 7fb1b66
src/bundle/Resources/public/js/scripts/quick.action.manager.js
@@ -25,6 +25,8 @@
25
return false;
26
});
27
28
+ const maxExtraPadding = Math.max(...buttonsToRender.map((config) => config.extraBottomPadding || 2));
29
+
30
buttonsToRender.forEach((buttonConfig, index) => {
31
const { container } = buttonConfig;
32
@@ -36,7 +38,7 @@
36
38
container.style.right = '2rem';
37
39
container.style.zIndex = buttonConfig.zIndex || 1040;
40
- const bottomPosition = `${index * ACTION_BTN_VERTICAL_SPACING + 2}rem`;
41
+ const bottomPosition = `${index * ACTION_BTN_VERTICAL_SPACING + maxExtraPadding}rem`;
42
43
container.style.bottom = bottomPosition;
44
0 commit comments