提交 05580737 编写于 作者: R Rob Lourens

Make search viewlet message shorter -

takes up too much vertical space as is. Also change the string to make it less likely to wrap and take another line.
上级 94235999
......@@ -82,6 +82,7 @@
cursor: pointer;
width: 16px;
height: 13px;
z-index: 2; /* Force it above the search results message, which has a negative top margin */
}
.hc-black .monaco-workbench .search-viewlet .query-details .more,
......@@ -143,6 +144,10 @@
font-weight: normal;
}
.search-viewlet .messages {
margin-top: -5px;
}
.search-viewlet .message {
padding-left: 22px;
padding-right: 22px;
......
......@@ -1185,13 +1185,13 @@ export class SearchViewlet extends Viewlet {
private buildResultCountMessage(resultCount: number, fileCount: number): string {
if (resultCount === 1 && fileCount === 1) {
return nls.localize('search.file.result', "Found {0} result in {1} file", resultCount, fileCount);
return nls.localize('search.file.result', "{0} result in {1} file", resultCount, fileCount);
} else if (resultCount === 1) {
return nls.localize('search.files.result', "Found {0} result in {1} files", resultCount, fileCount);
return nls.localize('search.files.result', "{0} result in {1} files", resultCount, fileCount);
} else if (fileCount === 1) {
return nls.localize('search.file.results', "Found {0} results in {1} file", resultCount, fileCount);
return nls.localize('search.file.results', "{0} results in {1} file", resultCount, fileCount);
} else {
return nls.localize('search.files.results', "Found {0} results in {1} files", resultCount, fileCount);
return nls.localize('search.files.results', "{0} results in {1} files", resultCount, fileCount);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册