From 1134c53a63cefc097152c8634db1baa36e334fdc Mon Sep 17 00:00:00 2001 From: lutinglt Date: Mon, 15 Sep 2025 19:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Wiki=20=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B9=E7=9B=AE=E6=B2=A1=E6=9C=89=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E9=9A=90=E8=97=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + styles/public/dropdown.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/release.md b/.github/release.md index 0ee87e6..6848f0a 100644 --- a/.github/release.md +++ b/.github/release.md @@ -8,3 +8,4 @@ - 修复后台账户管理排序菜单项的宽度问题 - 修复合并提交中的主色调按钮组阴影问题 +- 修复 Wiki 页面搜索项目没有正确隐藏的问题 #15 diff --git a/styles/public/dropdown.ts b/styles/public/dropdown.ts index 428df22..3f97843 100644 --- a/styles/public/dropdown.ts +++ b/styles/public/dropdown.ts @@ -55,6 +55,23 @@ export const dropdown = css` .ui.checkbox input[type="checkbox"] { height: 100%; } + // 修复 Wiki 页面下搜索框中搜索时, 显示隐藏的项目 + &.filtered { + display: none !important; + } + } + // 当筛选后, 让菜单提供边距, 因为无法确定保留的是菜单中哪个 item + // 不是所有菜单都提供边距方式, 原因为比如会导致分支菜单中的查看所有分支上间隔缺失, 这种方式单独为 Wiki 菜单做处理 + &:has(> .item.filtered):has(> .item.selected) { + padding: 8px 0px; + > .item { + &:first-of-type { + margin-top: 0; + } + &:last-of-type { + margin-bottom: 0; + } + } } > .divider { margin: 8px 0;