Skip to content

Commit 2b15fdd

Browse files
committed
fix
1 parent 4e6025a commit 2b15fdd

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

web_src/css/base.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,3 +1181,14 @@ the "!important" is necessary to override Fomantic UI menu item styles, meanwhil
11811181
flex-grow: 1;
11821182
justify-content: space-between;
11831183
}
1184+
1185+
.svg.octicon-file-directory-fill,
1186+
.svg.octicon-file-submodule {
1187+
color: var(--color-primary);
1188+
}
1189+
1190+
.svg.octicon-file,
1191+
.svg.octicon-file-symlink-file,
1192+
.svg.octicon-file-directory-symlink {
1193+
color: var(--color-secondary-dark-7);
1194+
}

web_src/css/repo/home-file-list.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@
1414
}
1515
}
1616

17-
#repo-files-table .svg.octicon-file-directory-fill,
18-
#repo-files-table .svg.octicon-file-submodule {
19-
color: var(--color-primary);
20-
}
21-
22-
#repo-files-table .svg.octicon-file,
23-
#repo-files-table .svg.octicon-file-symlink-file,
24-
#repo-files-table .svg.octicon-file-directory-symlink {
25-
color: var(--color-secondary-dark-7);
26-
}
27-
2817
#repo-files-table .repo-file-item {
2918
display: contents;
3019
}

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const doGotoSubModule = () => {
5858
>
5959
<!-- submodule -->
6060
<div class="item-content">
61-
<span class="text primary content" v-html="item.entryIcon"/>
61+
<!-- eslint-disable-next-line vue/no-v-html -->
62+
<span class="contents" v-html="item.entryIcon"/>
6263
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
6364
</div>
6465
</div>
@@ -70,7 +71,8 @@ const doGotoSubModule = () => {
7071
>
7172
<!-- symlink -->
7273
<div class="item-content">
73-
<span class="text primary content" v-html="item.entryIcon"/>
74+
<!-- eslint-disable-next-line vue/no-v-html -->
75+
<span class="contents" v-html="item.entryIcon"/>
7476
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
7577
</div>
7678
</div>
@@ -83,7 +85,7 @@ const doGotoSubModule = () => {
8385
<!-- file -->
8486
<div class="item-content">
8587
<!-- eslint-disable-next-line vue/no-v-html -->
86-
<span class="text primary content" v-html="item.entryIcon"/>
88+
<span class="contents" v-html="item.entryIcon"/>
8789
<span class="gt-ellipsis tw-flex-1">{{ item.entryName }}</span>
8890
</div>
8991
</div>
@@ -101,7 +103,7 @@ const doGotoSubModule = () => {
101103
</div>
102104
<div class="item-content">
103105
<!-- eslint-disable-next-line vue/no-v-html -->
104-
<span class="text primary content" v-html="(!collapsed && item.entryIconOpen) ? item.entryIconOpen : item.entryIcon"/>
106+
<span class="contents" v-html="(!collapsed && item.entryIconOpen) ? item.entryIconOpen : item.entryIcon"/>
105107
<span class="gt-ellipsis">{{ item.entryName }}</span>
106108
</div>
107109
</div>
@@ -159,7 +161,7 @@ const doGotoSubModule = () => {
159161
min-width: 0;
160162
}
161163
162-
.item-content .content {
164+
.item-content .contents {
163165
display: contents;
164166
}
165167
</style>

0 commit comments

Comments
 (0)