@mxmweb/rtext 1.3.1 → 1.3.3

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/index.js CHANGED
@@ -25668,10 +25668,15 @@ const t6 = Dt.div`
25668
25668
  .message-text {
25669
25669
  width: 100%;
25670
25670
  line-height: 1.6;
25671
-
25671
+ white-space: pre-wrap !important; /* 保留换行和空格格式,使用 !important 确保优先级 */
25672
25672
  border-radius: 0.5rem;
25673
25673
  min-height: ${(e) => e.$isUser ? "auto" : "40px"};
25674
25674
  font-size: 0.875rem;
25675
+
25676
+ /* 确保子元素也继承 white-space 属性 */
25677
+ & > * {
25678
+ white-space: pre-wrap !important;
25679
+ }
25675
25680
  }
25676
25681
  }
25677
25682
  `, s6 = Dt.div`
@@ -27302,7 +27307,7 @@ const t6 = Dt.div`
27302
27307
  },
27303
27308
  `md-${(ct || "").length}-think-${De}`
27304
27309
  )
27305
- ] }) : /* @__PURE__ */ N.jsx("div", { children: yr }) }) }) }),
27310
+ ] }) : /* @__PURE__ */ N.jsx("div", { style: { whiteSpace: "pre-wrap" }, children: yr }) }) }) }),
27306
27311
  ia(),
27307
27312
  Ur(),
27308
27313
  !c && Cr(),
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "lib_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.3.1",
8
+ "version": "1.3.3",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {