Repository navigation
fix(docs): 一级文件选中时指示条贯穿整个侧边栏左侧 - #313
Merged
Merged
Conversation
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。
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.
一级文件 active 态(c_euv_sidebar_link_active)缺少 position: relative,::before 指示条向上解析到 sticky 的 c_app_nav,画成 5px × 295px 贯穿整个列表左侧的竖条(线上实测)。补进定位选择器后实测收进本行 42px,悬浮/嵌套/根分组行为不变。版本 0.30.6 → 0.30.7。