mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-02 14:04:01 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user