✨ feat: 添加文档标题规范化功能和优化文档显示逻辑
This commit is contained in:
@@ -88,6 +88,10 @@
|
||||
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.docs-content-header.docs-content-header-compact {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.docs-content-header h1 {
|
||||
margin: 0;
|
||||
font-size: 1.6rem;
|
||||
@@ -159,7 +163,6 @@
|
||||
<aside class="docs-sidebar">
|
||||
<div class="docs-sidebar-header">
|
||||
<h2>文档目录</h2>
|
||||
<p>左侧选择 Markdown 文档,右侧查看渲染结果。</p>
|
||||
</div>
|
||||
<div class="docs-nav">
|
||||
<?php if (empty($doc_entries)) { ?>
|
||||
@@ -178,8 +181,10 @@
|
||||
</aside>
|
||||
|
||||
<section class="docs-content">
|
||||
<div class="docs-content-header">
|
||||
<div class="docs-content-header<?php if (!$show_selected_title) echo ' docs-content-header-compact'; ?>">
|
||||
<?php if ($show_selected_title) { ?>
|
||||
<h1><?php echo htmlspecialchars($selected_title, ENT_QUOTES, 'UTF-8'); ?></h1>
|
||||
<?php } ?>
|
||||
<span><?php echo empty($selected_file) ? '未选择文档' : htmlspecialchars($selected_file, ENT_QUOTES, 'UTF-8'); ?></span>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user