Skip to content

Commit 5588529

Browse files
kolaentetechknowlogicklunny
authored
fix: issue close/comment buttons on mobile (#17317)
* fix: issue close/comment buttons on mobile * fix: lint Co-authored-by: techknowlogick <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 6dd015a commit 5588529

File tree

1 file changed

+39
-29
lines changed

1 file changed

+39
-29
lines changed

web_src/less/_repository.less

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,11 @@
702702
margin-left: 10px;
703703
margin-top: 10px;
704704
}
705+
705706
.branch-update.grid {
706707
.row {
707708
padding-bottom: 1rem;
709+
708710
.icon {
709711
margin-top: 1.1rem;
710712
}
@@ -801,6 +803,7 @@
801803
.timeline-avatar {
802804
position: absolute;
803805
left: -72px;
806+
804807
img {
805808
width: 40px !important;
806809
height: 40px !important;
@@ -980,43 +983,44 @@
980983
}
981984

982985
.content {
983-
> .merge-section {
984-
background-color: var(--color-box-body);
986+
@media @mediaSm {
987+
.form .button {
988+
width: 100%;
989+
margin: 0;
985990

986-
.item {
987-
padding: .25rem 0;
991+
&:not(:last-child) {
992+
margin-bottom: 1rem;
993+
}
988994
}
995+
}
996+
}
989997

990-
.item-section {
991-
display: flex;
992-
align-items: center;
993-
justify-content: space-between;
994-
padding: 0;
995-
margin-top: -.25rem;
996-
margin-bottom: -.25rem;
997-
}
998+
> .merge-section {
999+
background-color: var(--color-box-body);
9981000

999-
.divider {
1000-
margin-left: -1rem;
1001-
margin-right: -1rem;
1002-
}
1001+
.item {
1002+
padding: .25rem 0;
1003+
}
10031004

1004-
&.no-header {
1005-
#avatar-arrow();
1005+
.item-section {
1006+
display: flex;
1007+
align-items: center;
1008+
justify-content: space-between;
1009+
padding: 0;
1010+
margin-top: -.25rem;
1011+
margin-bottom: -.25rem;
1012+
}
10061013

1007-
&::after {
1008-
border-right-color: var(--color-box-body);
1009-
}
1010-
}
1014+
.divider {
1015+
margin-left: -1rem;
1016+
margin-right: -1rem;
1017+
}
10111018

1012-
@media @mediaSm {
1013-
.form .button {
1014-
width: 100%;
1019+
&.no-header {
1020+
#avatar-arrow();
10151021

1016-
&:not(:last-child) {
1017-
margin-bottom: 1rem;
1018-
}
1019-
}
1022+
&::after {
1023+
border-right-color: var(--color-box-body);
10201024
}
10211025
}
10221026

@@ -1727,6 +1731,7 @@
17271731
padding: 0;
17281732
border-radius: 0;
17291733
}
1734+
17301735
img.emoji {
17311736
padding: 0;
17321737
}
@@ -1954,6 +1959,7 @@
19541959
.wrap_remove {
19551960
height: 38px;
19561961
}
1962+
19571963
.attachment_edit {
19581964
width: 450px !important;
19591965
}
@@ -2781,6 +2787,7 @@ tbody.commit-list {
27812787
tr.commit-list {
27822788
width: 100%;
27832789
}
2790+
27842791
th .message-wrapper {
27852792
display: block;
27862793
max-width: calc(100vw - 70px);
@@ -2791,6 +2798,7 @@ tbody.commit-list {
27912798
tr.commit-list {
27922799
width: 723px;
27932800
}
2801+
27942802
th .message-wrapper {
27952803
max-width: 280px;
27962804
}
@@ -2800,6 +2808,7 @@ tbody.commit-list {
28002808
tr.commit-list {
28012809
width: 933px;
28022810
}
2811+
28032812
th .message-wrapper {
28042813
max-width: 490px;
28052814
}
@@ -2809,6 +2818,7 @@ tbody.commit-list {
28092818
tr.commit-list {
28102819
width: 1127px;
28112820
}
2821+
28122822
th .message-wrapper {
28132823
max-width: 680px;
28142824
}

0 commit comments

Comments
 (0)