Skip to content

Commit 6294751

Browse files
committed
resize mirror icon via SVG
1 parent 8fc742c commit 6294751

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<ul class="repo-owner-name-list">
7373
<li class="gt-df gt-ac" v-for="repo in repos" :key="repo.id">
7474
<a class="repo-list-link muted gt-df gt-ac gt-f1" :href="repo.link">
75-
<svg-icon :name="repoIcon(repo)" :size="repoIconSize(repo)" class-name="repo-list-icon"/>
75+
<svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/>
7676
<div class="text truncate">{{ repo.full_name }}</div>
7777
<div v-if="repo.archived">
7878
<svg-icon name="octicon-archive" :size="16"/>
@@ -423,10 +423,6 @@ const sfc = {
423423
return 'octicon-repo';
424424
},
425425
426-
repoIconSize(repo) {
427-
return repo.mirror ? 14 : 16; // octicon-mirror does not have padding
428-
},
429-
430426
statusIcon(status) {
431427
return commitStatus[status].name;
432428
},
@@ -476,4 +472,12 @@ ul li:not(:last-child) {
476472
min-width: 16px;
477473
margin-right: 2px;
478474
}
475+
476+
/* octicon-mirror has no padding inside the SVG */
477+
.repo-list-icon.octicon-mirror {
478+
width: 14px;
479+
min-width: 14px;
480+
margin-left: 1px;
481+
margin-right: 3px;
482+
}
479483
</style>

0 commit comments

Comments
 (0)