@jobber/components 4.45.5 → 4.45.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataList/index.js +1 -2
- package/package.json +2 -2
package/dist/DataList/index.js
CHANGED
|
@@ -22,7 +22,6 @@ var useFocusTrap = require('@jobber/hooks/useFocusTrap');
|
|
|
22
22
|
var useRefocusOnActivator = require('@jobber/hooks/useRefocusOnActivator');
|
|
23
23
|
var useOnKeyDown = require('@jobber/hooks/useOnKeyDown');
|
|
24
24
|
var ReactDOM = require('react-dom');
|
|
25
|
-
var foundation = require('@jobber/design/foundation');
|
|
26
25
|
var Checkbox = require('../Checkbox-eac63b7f.js');
|
|
27
26
|
var reactRouterDom = require('react-router-dom');
|
|
28
27
|
var AnimatedSwitcher = require('../AnimatedSwitcher-d1e1ddcf.js');
|
|
@@ -415,7 +414,7 @@ function DataListActionsMenu({ visible = false, position, onRequestClose, childr
|
|
|
415
414
|
const { x, y } = position;
|
|
416
415
|
const xIsOffScreen = x + width > window.innerWidth;
|
|
417
416
|
const yIsOffScreen = y + height > window.innerHeight;
|
|
418
|
-
const xOffSet = x + width - window.innerWidth +
|
|
417
|
+
const xOffSet = x + width - window.innerWidth + design.tokens["space-base"];
|
|
419
418
|
const yOffSet = y + height - window.innerHeight;
|
|
420
419
|
const newPosX = Math.floor(xIsOffScreen ? x - xOffSet : x);
|
|
421
420
|
const newPosY = Math.floor(yIsOffScreen ? y - yOffSet : y);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"> 1%",
|
|
85
85
|
"IE 10"
|
|
86
86
|
],
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "50f381add8ffbc2889644daeca6ae2bf7d6edfc0"
|
|
88
88
|
}
|