pb-sxp-ui 1.15.38 → 1.15.40

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/index.cjs CHANGED
@@ -10208,10 +10208,12 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
10208
10208
  if (!realRef.current || !clampRef.current || !isPost || !text || isShowMore)
10209
10209
  return;
10210
10210
  requestAnimationFrame(() => {
10211
+ realRef.current.style.position = 'relative';
10211
10212
  const realHeight = realRef.current.getBoundingClientRect().height;
10212
10213
  const clampHeight = clampRef.current.getBoundingClientRect().height;
10213
10214
  const isActuallyClamped = realHeight > clampHeight + 1;
10214
10215
  setIsShow(isActuallyClamped);
10216
+ realRef.current.style.position = 'absolute';
10215
10217
  });
10216
10218
  }, [isPost, text, isShowMore]);
10217
10219
  // 增强版监听(同时监听字体加载)
@@ -10246,8 +10248,8 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
10246
10248
  visibility: 'hidden',
10247
10249
  opacity: 0,
10248
10250
  clipPath: 'inset(100%)',
10249
- transform: 'translateX(-9999px)',
10250
- position: 'absolute'
10251
+ transform: 'translateX(-9999px)'
10252
+ // position: 'absolute'
10251
10253
  }, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
10252
10254
  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: {
10253
10255
  __html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
@@ -10562,7 +10564,7 @@ const CommodityDetail$1 = (_a) => {
10562
10564
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
10563
10565
  renderBtn(),
10564
10566
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
10565
- React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
10567
+ React.createElement("div", { style: { paddingTop: '34px', paddingBottom: '80px' } }, renderContent({ isPost: false })),
10566
10568
  renderBtn()),
10567
10569
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10568
10570
  React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
@@ -11523,7 +11525,7 @@ Made in Italy` })));
11523
11525
  } }))),
11524
11526
  productInfoText({ isPost }))),
11525
11527
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
11526
- React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
11528
+ React.createElement("div", { style: { paddingTop: '34px' } }, productInfoText({ isPost: false }))),
11527
11529
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
11528
11530
  React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
11529
11531
  React.createElement("iframe", { src: iframeUrl, style: {