Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: Fix the layout confusion caused by too long code #1404

shuai4fa1d0f494c9
diff --git a/ui/src/index.scss b/ui/src/index.scss
index 508598ac..c13de36e 100644
--- a/ui/src/index.scss
+++ b/ui/src/index.scss
@@ -52,6 +52,10 @@ img[src=''] {
visibility: hidden !important;
}
+.page-main {
+ overflow-x: auto;
+}
+
.btn-link {
text-decoration: none;
}
@@ -280,6 +284,8 @@ img[src=''] {
color: var(--an-212529);
padding: 2px 4px;
border-radius: 0.25rem;
+ overflow-wrap: normal;
+ white-space: inherit;
}
}
pre {
@@ -288,6 +294,11 @@ img[src=''] {
padding: 1rem;
max-height: 38rem;
white-space: pre-wrap;
+ overflow: auto;
+ code {
+ overflow-wrap: normal;
+ white-space: inherit;
+ }
}
blockquote {
border-left: 0.25rem solid #ced4da;