Skip to content

Commit

Permalink
fix: add icons to EditorTree and optimize its style (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiwong authored Feb 16, 2022
1 parent 4a3470f commit 859fd73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/workbench/sidebar/explore/editorTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const EditorTree = (props: IOpenEditProps) => {
className={
editorTreeFileIconClassName
}
type={file.data?.icon || ''}
type={file.data?.icon || file.icon}
/>
<span
className={
Expand Down
3 changes: 1 addition & 2 deletions src/workbench/sidebar/explore/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,9 @@

&__file[class*='codicon-'] {
flex-shrink: 0;
font-size: inherit;
height: 22px;
line-height: 23px;
margin: 0 2px;
margin: 0 5px 0 3px;
width: 16px;
}
}

0 comments on commit 859fd73

Please sign in to comment.