From a1087d68bbc4833e822a4a5b9e43261aa11538ce Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 15 Oct 2021 18:16:26 +0200 Subject: [PATCH 1/2] fix: issue close/comment buttons on mobile --- web_src/less/_repository.less | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 3d7d40ffa3427..9d5784ba9d57b 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -976,7 +976,19 @@ } .content { - > .merge-section { + @media @mediaSm { + .form .button { + width: 100%; + margin: 0; + + &:not(:last-child) { + margin-bottom: 1rem; + } + } + } + } + + > .merge-section { background-color: var(--color-box-body); .item { @@ -1005,17 +1017,6 @@ } } - @media @mediaSm { - .form .button { - width: 100%; - - &:not(:last-child) { - margin-bottom: 1rem; - } - } - } - } - .markup { font-size: 14px; } From 7663fad289ae43304f3465172c905e48d4bfc42d Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 15 Oct 2021 19:10:52 +0200 Subject: [PATCH 2/2] fix: lint --- web_src/less/_repository.less | 51 ++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 9d5784ba9d57b..11a09dee17794 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -702,9 +702,11 @@ margin-left: 10px; margin-top: 10px; } + .branch-update.grid { .row { padding-bottom: 1rem; + .icon { margin-top: 1.1rem; } @@ -801,6 +803,7 @@ .timeline-avatar { position: absolute; left: -72px; + img { width: 40px !important; height: 40px !important; @@ -989,33 +992,33 @@ } > .merge-section { - background-color: var(--color-box-body); + background-color: var(--color-box-body); - .item { - padding: .25rem 0; - } + .item { + padding: .25rem 0; + } - .item-section { - display: flex; - align-items: center; - justify-content: space-between; - padding: 0; - margin-top: -.25rem; - margin-bottom: -.25rem; - } + .item-section { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0; + margin-top: -.25rem; + margin-bottom: -.25rem; + } - .divider { - margin-left: -1rem; - margin-right: -1rem; - } + .divider { + margin-left: -1rem; + margin-right: -1rem; + } - &.no-header { - #avatar-arrow(); + &.no-header { + #avatar-arrow(); - &::after { - border-right-color: var(--color-box-body); - } + &::after { + border-right-color: var(--color-box-body); } + } .markup { font-size: 14px; @@ -1724,6 +1727,7 @@ padding: 0; border-radius: 0; } + img.emoji { padding: 0; } @@ -1951,6 +1955,7 @@ .wrap_remove { height: 38px; } + .attachment_edit { width: 450px !important; } @@ -2778,6 +2783,7 @@ tbody.commit-list { tr.commit-list { width: 100%; } + th .message-wrapper { display: block; max-width: calc(100vw - 70px); @@ -2788,6 +2794,7 @@ tbody.commit-list { tr.commit-list { width: 723px; } + th .message-wrapper { max-width: 280px; } @@ -2797,6 +2804,7 @@ tbody.commit-list { tr.commit-list { width: 933px; } + th .message-wrapper { max-width: 490px; } @@ -2806,6 +2814,7 @@ tbody.commit-list { tr.commit-list { width: 1127px; } + th .message-wrapper { max-width: 680px; }