This commit is contained in:
2026-01-01 11:05:23 +08:00
parent 3a0440296b
commit e5e385f51b
6 changed files with 43 additions and 63 deletions

View File

@@ -1,17 +1,22 @@
// @keep-sorted
export default defineAppConfig({
component: {
codeblock: {
/** 代码块触发折叠的行数 */
triggerRows: 32,
/** 代码块折叠后的行数 */
collapsedRows: 16,
/** 启用代码块缩进导航会关闭空格渲染 */
enableIndentGuide: true,
/** 代码块缩进导航(Indent Guige)竖线匹配空格数 */
indent: 4,
/** tab渲染宽度 */
tabSize: 3,
ui: {
prose: {
// pre: {
// slots: {
// root: "relative my-4 group rounded-lg bg-(--c-bg-2,#0f1419)",
// header:
// "sticky top-0 z-20 flex items-center justify-between gap-3 px-4 py-2.5 bg-(--c-bg-2,#0f1419) border-b border-(--c-border,#2a2e38) backdrop-blur-sm",
// filename:
// "flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-(--c-bg-3,#1a1f2e) text-xs font-mono text-(--c-text-1,#e8eaed) whitespace-nowrap border border-(--c-border,#2a2e38)",
// icon: "w-3.5 h-3.5 shrink-0 opacity-80",
// copy: "px-2.5 py-1.5 rounded-md text-xs font-mono bg-(--c-bg-3,#1a1f2e) hover:bg-(--c-border,#2a2e38) transition-colors text-(--c-text-2,#a8adb8) hover:text-(--c-text-1,#e8eaed) border border-transparent hover:border-(--c-border,#2a2e38)",
// base: "overflow-auto m-0 text-(--c-text-1,#e8eaed) shiki font-mono text-sm leading-relaxed",
// },
// },
codeIcon: {
config: "i-lucide-settings",
},
},
},
});