fix(style): 恢复 /info/ 页 <pre> 的换行问题

This commit is contained in:
Ad-closeNN
2026-03-03 20:29:52 +08:00
parent 9a90bd6143
commit 82fd2ae20b
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ interface Props {
}
const className = Astro.props.class;
---
<div data-pagefind-body class={`prose dark:prose-invert prose-base !max-w-none custom-md ${className}`}>
<div data-pagefind-body class={`prose dark:prose-invert prose-base !max-w-none custom-md ${className}`} style="overflow-wrap: break-word; word-wrap: break-word; word-break: break-word;">
<!--<div class="prose dark:prose-invert max-w-none custom-md">-->
<!--<div class="max-w-none custom-md">-->
<slot/>
+10 -1
View File
@@ -2,7 +2,16 @@
## 概览
<style>
pre {
font-family: 'Cascadia Mono', 'JetBrains Mono'
font-family: 'Cascadia Mono', 'JetBrains Mono';
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-all;
}
code {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
}
</style>
**当前提交:**