Skip to content

Commit f6315fb

Browse files
authored
Fix align issues and decrease avatar size on PR timeline (#11689)
* Fix margin for referenced issue title * Change avatar size to 20px, align referenced issue title to avatar * better align
1 parent c8b1c4b commit f6315fb

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

web_src/less/_repository.less

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,13 @@
751751
}
752752
}
753753

754+
.avatar.image,
755+
.avatar.image img {
756+
width: 20px;
757+
height: 20px;
758+
margin-right: .15em;
759+
}
760+
754761
&:first-child:not(.commit) {
755762
padding-top: 0 !important;
756763
}
@@ -762,7 +769,6 @@
762769
.badge.badge-commit {
763770
border-color: transparent;
764771
background: radial-gradient(white 60%, transparent 60%) no-repeat;
765-
height: 0 !important;
766772
}
767773

768774
.badge {
@@ -774,9 +780,9 @@
774780
display: flex;
775781
float: left;
776782
margin-left: -32px;
777-
margin-top: -1px;
778783
margin-right: 8px;
779784
color: #444;
785+
align-items: center;
780786

781787
.svg {
782788
width: 28px;
@@ -804,16 +810,19 @@
804810
}
805811

806812
&.event > .text {
807-
line-height: 30px;
813+
line-height: 32px;
814+
vertical-align: middle;
808815
}
809816

810817
&.commits-list {
811818
padding-left: 15px;
812819
padding-top: 0;
813820

814821
.singular-commit {
822+
line-height: 30px;
823+
815824
&:not(:last-child) {
816-
padding-bottom: 3px;
825+
padding-bottom: 2px;
817826
}
818827

819828
.shabox {
@@ -1138,13 +1147,7 @@
11381147
.detail {
11391148
font-size: .9rem;
11401149
margin-top: 5px;
1141-
margin-left: 35px;
1142-
1143-
.svg {
1144-
&.octicon-git-commit {
1145-
margin-top: 2px;
1146-
}
1147-
}
1150+
margin-left: 8px;
11481151
}
11491152

11501153
.segments {

0 commit comments

Comments
 (0)