pb-sxp-ui 1.15.25 → 1.15.26

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/pb-ui.js CHANGED
@@ -10235,7 +10235,7 @@
10235
10235
  (_a = observerRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
10236
10236
  };
10237
10237
  }, [checkOverflow]);
10238
- return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden' }), hidden: !text || text === '' },
10238
+ return (React.createElement("div", { className: className, style: Object.assign(Object.assign({}, textStyle), { transform: 'translate3d(0px, 0px, 0px)', overflow: 'hidden', position: 'relative' }), hidden: !text || text === '' },
10239
10239
  React.createElement("div", { ref: clampRef, style: Object.assign(Object.assign({}, (!isShowMore &&
10240
10240
  isPost && {
10241
10241
  WebkitLineClamp: textLineClamp,
@@ -10255,7 +10255,8 @@
10255
10255
  visibility: 'hidden',
10256
10256
  position: 'absolute',
10257
10257
  opacity: 0,
10258
- clipPath: 'inset(100%)'
10258
+ clipPath: 'inset(100%)',
10259
+ transform: 'translateX(-9999px)'
10259
10260
  }, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
10260
10261
  text && isPost && isShow && (React.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
10261
10262
  __html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
@@ -20195,3 +20196,4 @@ Made in Italy` })));
20195
20196
  Object.defineProperty(exports, '__esModule', { value: true });
20196
20197
 
20197
20198
  }));
20199
+ //# sourceMappingURL=pb-ui.js.map