oolib 2.2.3 → 2.2.4

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.
@@ -48,15 +48,16 @@ var Breadcrumbs = function (_a) {
48
48
  if (containerWidth > (0, mixins_1.getBreakPoint)('md')) { // for large devices (not default since containerWidth is initialized to 0)
49
49
  var linksDisplayed_1 = beConcise && links.length > 3 ? [links[0], { to: "", display: "..." }, links[links.length - 2], links[links.length - 1]] : links;
50
50
  return (react_1.default.createElement(index_styled_1.StyledBreadcrumbs, { ref: measuredContainer }, linksDisplayed_1.map(function (link, ind) {
51
- return (react_1.default.createElement(index_styled_1.StyledLinkCrumb, { to: link.to, invert: invert, key: ind, style: beConcise && ind == linksDisplayed_1.length - 1 ?
52
- { width: (function () {
53
- var children = measuredContainer.current.children;
54
- var childrenCount = children.length;
55
- var correctionFactor = 88;
56
- return containerWidth - (children[0].scrollWidth + correctionFactor + (childrenCount > 2 &&
57
- children[childrenCount - 2].scrollWidth)) + 'px';
58
- })()
59
- } : {} },
51
+ return (react_1.default.createElement(index_styled_1.StyledLinkCrumb, { to: link.to, invert: invert, key: ind, style: ind == linksDisplayed_1.length - 1 ? {
52
+ pointerEvents: 'none',
53
+ width: !beConcise ? 'auto' : (function () {
54
+ var children = measuredContainer.current.children;
55
+ var childrenCount = children.length;
56
+ var correctionFactor = 88;
57
+ return containerWidth - (children[0].scrollWidth + correctionFactor + (childrenCount > 2 &&
58
+ children[childrenCount - 2].scrollWidth)) + 'px';
59
+ })()
60
+ } : {} },
60
61
  react_1.default.createElement(Typo_1.SANS_2, { style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, link.display)));
61
62
  })));
62
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",