Merge pull request #806 from ZinChl/fix/search-result-directory-click
fix(files): 搜索结果里的目录行改为导航文件树,不再当文件打开(#801)
This commit is contained in:
8 files changed
+246
-52
No files matched your search
@@ -1341,7 +1341,9 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
}
|
||||
|
||||
.editorSearchResult {
|
||||
display: block;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 28px;
|
||||
@@ -1355,6 +1357,17 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* A directory hit is a navigation target, not an openable file: the folder
|
||||
glyph and the dimmer label say so before the click. */
|
||||
.editorSearchResultDir {
|
||||
color: var(--dsw-alias-label-secondary);
|
||||
}
|
||||
|
||||
.editorSearchResultLabel {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user