Repository navigation
Conversation
commit 7fb3589 Author: discreted66 <953831480@qq.com> Date: Sat Oct 10 16:23:59 2026 +0800 fix: 优化宽屏多分辨率适配与头部导航三栏布局 - 同步 --vp-sidebar-width 为 260px,消除侧边栏与内容区 12px 错位 - 右侧大纲导航贴近视口右边缘(去掉 VPContent/VPDoc 右侧内边距) - header-top 重构为 grid 三栏:Logo 居左、产品导航严格居中、工具栏居右 - 中窄屏(980-1479px)压缩 Tab 密度,左右列不被压缩,避免重叠 - Tab 禁止收缩折行,空间不足时横向滚动(隐藏滚动条) - header-bottom 保持居左布局,与 header-top 居中互不干扰 commit 0be2e91 Author: discreted66 <953831480@qq.com> Date: Fri Sep 4 17:25:28 2026 +0800 feat: 暂时隐藏最近更新模块并统一链接样式 - 注释 UpdateSection,暂停 GitHub API 调用 - category-link 和 component-link 统一为灰色风格,hover 显示下划线 - 暗色模式下链接使用 #cccccc / rgba(255,255,255,0.08) - 移除 product-cards-grid 多余的 padding-bottom # Conflicts: # .vitepress/theme/components/CustomHeader.vue # .vitepress/theme/components/TabNavigation.vue
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
zzcr
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
在宽屏(≥1920px)下,文档中间区域过窄、分布不均,右侧大纲导航未贴近视口右边缘;头部导航栏未严格相对视口居中,且在 980–1440px 区间与侧边栏出现重叠。
改动内容
style.css中--vp-sidebar-width从默认 272px 改为实际 260px,消除内容区左侧 12px 错位VPContent.has-sidebar和VPDoc.has-aside的右侧 padding 归零,大纲容器右边缘与视口齐平CustomHeader.vueheader-top 改用 Grid1fr auto 1fr,Logo 居左、产品 Tab 严格居中、工具栏居右;移除硬编码width: 980pxmin-width: 0,让 Grid 最小值 = 内容宽度,永不压缩;1440px 以下压缩 Tab padding/font 保证完整放下TabNavigation.vue新增flex-shrink: 0; white-space: nowrap;,空间不足时横向滚动(隐藏滚动条)影响范围
.vitepress/theme/style.css— 3 处变量/布局覆盖.vitepress/theme/components/CustomHeader.vue— header-top DOM 重构 + 样式.vitepress/theme/components/TabNavigation.vue— Tab 折行修复 + 清理死代码测试建议