File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 72
72
<ul class =" repo-owner-name-list" >
73
73
<li class =" gt-df gt-ac" v-for =" repo in repos" :key =" repo.id" >
74
74
<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" />
76
76
<div class =" text truncate" >{{ repo.full_name }}</div >
77
77
<div v-if =" repo.archived" >
78
78
<svg-icon name =" octicon-archive" :size =" 16" />
@@ -423,10 +423,6 @@ const sfc = {
423
423
return ' octicon-repo' ;
424
424
},
425
425
426
- repoIconSize (repo ) {
427
- return repo .mirror ? 14 : 16 ; // octicon-mirror does not have padding
428
- },
429
-
430
426
statusIcon (status ) {
431
427
return commitStatus[status].name ;
432
428
},
@@ -476,4 +472,12 @@ ul li:not(:last-child) {
476
472
min-width : 16px ;
477
473
margin-right : 2px ;
478
474
}
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
+ }
479
483
</style >
You can’t perform that action at this time.
0 commit comments