tenjin-ui-kit 0.2.48 → 0.2.49

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.
@@ -6,17 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _material = require("@mui/material");
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _reactRouterDom = require("react-router-dom");
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  var PageContent = function PageContent(_ref) {
11
12
  var children = _ref.children;
13
+ var location = (0, _reactRouterDom.useLocation)();
12
14
  var theme = (0, _material.useTheme)();
13
15
  return /*#__PURE__*/_react.default.createElement(_material.Box, {
14
16
  sx: {
15
17
  marginLeft: theme.spacing(0.5),
16
- height: "100%",
17
- maxHeight: "100%",
18
- overflowY: "auto",
19
- width: "calc(100vw - 210px)"
18
+ height: '100%',
19
+ maxHeight: '100%',
20
+ overflowY: 'auto',
21
+ width: location.pathname.includes('agent') ? "100vw !important" : 'calc(100vw - 210px)'
20
22
  }
21
23
  }, children);
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },