Skip to content

Commit 5541e0a

Browse files
authored
Merge pull request microsoft#131887 from microsoft/aeschli/131396
fix for microsoft#131396
2 parents 95be679 + 3882d65 commit 5541e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/services/themes/browser/fileIconThemeData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ function _processIconThemeDocument(id: string, iconThemeDocumentLocation: URI, i
343343
if (Array.isArray(fonts)) {
344344
fonts.forEach(font => {
345345
let src = font.src.map(l => `${asCSSUrl(resolvePath(l.path))} format('${l.format}')`).join(', ');
346-
cssRules.push(`@font-face { src: ${src}; font-family: '${font.id}'; font-weight: ${font.weight}; font-style: ${font.style}; }`);
346+
cssRules.push(`@font-face { src: ${src}; font-family: '${font.id}'; font-weight: ${font.weight}; font-style: ${font.style}; font-display: block; }`);
347347
});
348-
cssRules.push(`.show-file-icons .file-icon::before, .show-file-icons .folder-icon::before, .show-file-icons .rootfolder-icon::before { font-family: '${fonts[0].id}'; font-size: ${fonts[0].size || '150%'}; font-display: block; }`);
348+
cssRules.push(`.show-file-icons .file-icon::before, .show-file-icons .folder-icon::before, .show-file-icons .rootfolder-icon::before { font-family: '${fonts[0].id}'; font-size: ${fonts[0].size || '150%'}; }`);
349349
}
350350

351351
for (let defId in selectorByDefinitionId) {

0 commit comments

Comments
 (0)