Skip to content

Commit 859fd73

Browse files
authored
fix: add icons to EditorTree and optimize its style (#656)
1 parent 4a3470f commit 859fd73

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/workbench/sidebar/explore/editorTree.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const EditorTree = (props: IOpenEditProps) => {
251251
className={
252252
editorTreeFileIconClassName
253253
}
254-
type={file.data?.icon || ''}
254+
type={file.data?.icon || file.icon}
255255
/>
256256
<span
257257
className={

src/workbench/sidebar/explore/style.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,9 @@
163163

164164
&__file[class*='codicon-'] {
165165
flex-shrink: 0;
166-
font-size: inherit;
167166
height: 22px;
168167
line-height: 23px;
169-
margin: 0 2px;
168+
margin: 0 5px 0 3px;
170169
width: 16px;
171170
}
172171
}

0 commit comments

Comments
 (0)