Skip to content

Commit 4e6025a

Browse files
authored
Update ViewFileTreeItem.vue
1 parent 8c9d2bd commit 4e6025a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const doGotoSubModule = () => {
5858
>
5959
<!-- submodule -->
6060
<div class="item-content">
61-
<SvgIcon class="text primary" name="octicon-file-submodule"/>
61+
<span class="text primary content" v-html="item.entryIcon"/>
6262
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
6363
</div>
6464
</div>
@@ -70,7 +70,7 @@ const doGotoSubModule = () => {
7070
>
7171
<!-- symlink -->
7272
<div class="item-content">
73-
<SvgIcon name="octicon-file-symlink-file"/>
73+
<span class="text primary content" v-html="item.entryIcon"/>
7474
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
7575
</div>
7676
</div>
@@ -83,7 +83,7 @@ const doGotoSubModule = () => {
8383
<!-- file -->
8484
<div class="item-content">
8585
<!-- eslint-disable-next-line vue/no-v-html -->
86-
<span v-html="item.entryIcon"/>
86+
<span class="text primary content" v-html="item.entryIcon"/>
8787
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
8888
</div>
8989
</div>
@@ -101,7 +101,7 @@ const doGotoSubModule = () => {
101101
</div>
102102
<div class="item-content">
103103
<!-- eslint-disable-next-line vue/no-v-html -->
104-
<span class="text primary" v-html="(!collapsed && item.entryIconOpen) ? item.entryIconOpen : item.entryIcon"/>
104+
<span class="text primary content" v-html="(!collapsed && item.entryIconOpen) ? item.entryIconOpen : item.entryIcon"/>
105105
<span class="gt-ellipsis">{{ item.entryName }}</span>
106106
</div>
107107
</div>
@@ -158,4 +158,8 @@ const doGotoSubModule = () => {
158158
text-overflow: ellipsis;
159159
min-width: 0;
160160
}
161+
162+
.item-content .content {
163+
display: contents;
164+
}
161165
</style>

0 commit comments

Comments
 (0)