mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-25 20:30:30 +00:00
修复 Wiki 页面搜索项目没有正确隐藏的问题
This commit is contained in:
1
.github/release.md
vendored
1
.github/release.md
vendored
@@ -8,3 +8,4 @@
|
||||
|
||||
- 修复后台账户管理排序菜单项的宽度问题
|
||||
- 修复合并提交中的主色调按钮组阴影问题
|
||||
- 修复 Wiki 页面搜索项目没有正确隐藏的问题 #15
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user