From 6cdbe8816ea6eb5929ef49c7dd5410cae0dbcfb8 Mon Sep 17 00:00:00 2001 From: vshengbro Date: Sat, 17 Oct 2026 22:05:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(docs):=20=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E6=8C=87=E7=A4=BA=E6=9D=A1=E4=B8=8E=E8=99=9A?= =?UTF-8?q?=E7=BA=BF=E5=AF=BC=E8=BD=A8=E9=87=8D=E5=90=88=EF=BC=8C=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=97=B6=E7=9B=96=E4=BD=8F=E5=BD=93=E5=89=8D=E8=A1=8C?= =?UTF-8?q?=E8=99=9A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 嵌套行的悬浮条原来 left: -8px,只退回 padding,落在虚线右侧 x∈[9,14], 与 x=8 的 1px dashed 导轨并排相邻。改为 left: -9px 再退回 1px 边框宽 度,条的左边缘与导轨完全对齐(实测两层深度 dx 均为 0),悬浮时该行 42px 段的虚线被条盖住,实现「悬浮行看不见左侧虚线」。 不影响其它行:::before 静止态 background: transparent,非悬浮行的虚线 段完整保留;一级条目无 children 容器祖先,left: 0 不受影响(实测仍在 x=0);active 变体的几何未动。 浏览器实测(本地构建,强制 :hover,两层深度各行): 条左边缘 == 虚线 x(dx=0),条完全覆盖 1px 虚线 一级条目悬浮 条 x=0,行为不变 版本 0.30.7 → 0.30.8。 --- Cargo.toml | 16 ++++++++-------- docs/src/app/const.rs | 17 +++++++++++------ 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b149d7a2..ad9b9767 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "web-programming"] exclude.workspace = true [workspace.package] -version = "0.30.7" +version = "0.30.8" readme = "README.md" edition = "2024" authors = ["root@ltpp.vip"] @@ -38,13 +38,13 @@ resolver = "3" crate-type = ["rlib"] [workspace.dependencies] -euv = { path = ".", version = "0.30.7" } -euv-ui = { path = "ui", version = "0.30.7" } -euv-cli = { path = "cli", version = "0.30.7" } -euv-core = { path = "core", version = "0.30.7" } -euv-engine = { path = "engine", version = "0.30.7" } -euv-macros = { path = "macros", version = "0.30.7" } -euv-example = { path = "example", version = "0.30.7" } +euv = { path = ".", version = "0.30.8" } +euv-ui = { path = "ui", version = "0.30.8" } +euv-cli = { path = "cli", version = "0.30.8" } +euv-core = { path = "core", version = "0.30.8" } +euv-engine = { path = "engine", version = "0.30.8" } +euv-macros = { path = "macros", version = "0.30.8" } +euv-example = { path = "example", version = "0.30.8" } log = "0.4.34" toml = "0.9.12" diff --git a/docs/src/app/const.rs b/docs/src/app/const.rs index c1177370..02be6bb8 100644 --- a/docs/src/app/const.rs +++ b/docs/src/app/const.rs @@ -44,15 +44,20 @@ pub(crate) const APP_GLOBAL_CSS: &str = "html, body { height: 100% !important; o .c_nav_section_label { padding-left: 0.75rem !important; } \ .c_nav_footer { padding-left: 0.75rem !important; } \ .c_euv_sidebar_children { margin-left: 8px !important; padding-left: 8px !important; } \ - /* The dashed tree guide is the children's left edge, so a - nested marker has to sit against it, not against the - content box the 8px padding pushes right. `left: -8px` - walks the marker back over exactly that padding, so it - abuts the dashed border at every nesting level. + /* The dashed tree guide is the children's left edge, and the + hover marker should *replace* it on the hovered row, not sit + beside it. The guide paints at margin-left (8px) of the + children container; the row's padding box starts 1px (border) + + 8px (padding) further right. `left: -9px` walks the marker + back over both, so the 5px bar's left edge lands exactly on + the guide and covers its 1px for this row's height — measured + bar x == guide x at every nesting level (guide 8px left of + the row at all depths). Other rows keep their dashed segment + because their ::before stays transparent at rest. Matched by descendant, not child: the renderer wraps each row, so the row is never a direct child of `c_euv_sidebar_children`. */ \ - .c_euv_sidebar_children .c_euv_sidebar_link::before, .c_euv_sidebar_children .c_euv_sidebar_group_title::before { left: -8px !important; } \ + .c_euv_sidebar_children .c_euv_sidebar_link::before, .c_euv_sidebar_children .c_euv_sidebar_group_title::before { left: -9px !important; } \ .c_euv_sidebar_children .c_euv_sidebar_link_active::before, .c_euv_sidebar_children .c_euv_sidebar_group_title_active::before { left: -8px !important; } \ .c_euv_sidebar_children .c_euv_sidebar_link_active_flush::before { left: 0 !important; } \ \