Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:优化滚动条样式

xiaoyao428e59b8ed0816
diff --git a/jiuwenswarm/channels/web/frontend/src/index.css b/jiuwenswarm/channels/web/frontend/src/index.css
index c5bd1813e9..7bd1301c22 100644
--- a/jiuwenswarm/channels/web/frontend/src/index.css
+++ b/jiuwenswarm/channels/web/frontend/src/index.css
@@ -827,6 +827,8 @@ select {
.chat-markdown {
@apply prose prose-sm max-w-none;
+ max-width: 100%;
+ min-width: 0;
--tw-prose-body: var(--chat-text);
--tw-prose-headings: var(--text-strong);
--tw-prose-lead: var(--muted);
@@ -843,9 +845,37 @@ select {
--tw-prose-pre-bg: var(--secondary);
--tw-prose-th-borders: var(--border);
--tw-prose-td-borders: var(--border);
+ overflow-wrap: anywhere;
+ word-break: break-word;
white-space: normal;
}
+ .chat-markdown :where(p, li, blockquote, h1, h2, h3, h4, h5, h6) {
+ max-width: 100%;
+ overflow-wrap: anywhere;
+ word-break: break-word;
+ }
+
+ .chat-markdown :where(ul, ol) {
+ max-width: 100%;
+ }
+
+ .chat-markdown :where(pre, table) {
+ max-width: 100%;
+ overflow-x: auto;
+ }
+
+ .chat-markdown :where(pre code) {
+ overflow-wrap: normal;
+ word-break: normal;
+ white-space: pre;
+ }
+
+ .chat-markdown :where(:not(pre) > code) {
+ overflow-wrap: anywhere;
+ white-space: break-spaces;
+ }
+
/* Remove the default prose paragraph margins so single-line messages sit flush
inside the bubble. Keep spacing between consecutive paragraphs. */
.chat-markdown p {
@@ -1048,6 +1078,11 @@ select {
word-break: break-word;
}
+ .team-member-message__content {
+ max-width: 100%;
+ min-width: 0;
+ }
+
:root[data-theme="light"] .team-member-message__card {
background: var(--bg-muted);
}