Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: output code too long break ui (#320)

Joeld5ab3b50729a
diff --git a/web/app/styles/markdown.scss b/web/app/styles/markdown.scss
index 24bfb981951..a95a6e4a0e7 100644
--- a/web/app/styles/markdown.scss
+++ b/web/app/styles/markdown.scss
@@ -743,13 +743,14 @@
.markdown-body pre code {
font-size: 100%;
+ white-space: pre-wrap !important;
}
.markdown-body pre>code {
padding: 0;
margin: 0;
word-break: normal;
- white-space: pre;
+ white-space: pre-wrap;
background: transparent;
border: 0;
}