Skip to content

fix(docs): 一级文件选中时指示条贯穿整个侧边栏左侧 - #313

Merged
vshengbro merged 1 commit into
masterfrom
fix/sidebar-active-leaf-marker
Oct 17, 2026
Merged

vshengbro merged 1 commit into
masterfrom
fix/sidebar-active-leaf-marker

Conversation

@vshengbro

Copy link
Copy Markdown
Collaborator

一级文件 active 态(c_euv_sidebar_link_active)缺少 position: relative,::before 指示条向上解析到 sticky 的 c_app_nav,画成 5px × 295px 贯穿整个列表左侧的竖条(线上实测)。补进定位选择器后实测收进本行 42px,悬浮/嵌套/根分组行为不变。版本 0.30.6 → 0.30.7。

c_euv_sidebar_link_active(一级文件 active 态)缺少 position: relative,
其 ::before 指示条(top:0/bottom:0/left:0/width:5px)向上解析到最近的
定位祖先——sticky 的 c_app_nav——于是画成一条 5px × 295px 贯穿整个列
表左侧的加粗竖条(线上实测),而不是只标记当前这一项。

注入样式里所有带绝对定位 ::before 的行类都必须自身定位:
link/group_title 已有(同一条规则),group_title_active 与 flush 在
另一条规则里,root 两个变体也有——唯独漏了一级 active 叶子。把它补进
position: relative 的选择器列表。

修复后实测(本地构建,#/(top-level leaf 页面)):
  一级 active 叶子   ::before 42px,position: relative,收进本行
  悬浮其他一级条目   各自 42px 条,互不影响
  嵌套条目/根分组    行为不变(42px、贴虚线)

版本 0.30.6 → 0.30.7。
@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Oct 17, 2026
@vshengbro
vshengbro merged commit 7722eec into master Oct 17, 2026
8 checks passed
@vshengbro
vshengbro deleted the fix/sidebar-active-leaf-marker branch October 17, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant