Improve mobile reading layout and typography

Make classic text chapters easier to read on phones with responsive styles, collapsed sidebar groups, and less intrusive install prompts on doc pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-05 17:57:57 +08:00
parent c9f78ef25f
commit a8907d6cc0
5 changed files with 208 additions and 11 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ export function generateSidebar(): Record<string, SidebarItem[]> {
if (rootFiles.length > 0) {
groups.push({
text: '典籍',
collapsed: false,
collapsed: true,
items: rootFiles.map((file) => ({
text: titleFromFilename(file.name),
link: toLink(file.name),
@@ -103,7 +103,7 @@ export function generateSidebar(): Record<string, SidebarItem[]> {
if (items.length === 0) continue
groups.push({
text: dir.name,
collapsed: false,
collapsed: true,
items,
})
}