forked from NYANDEV/forgejo
Backport various styling fixes (#11619)
* Fix inconsistent font size for markdown preview on new PR view (#11565) We use same method for new issue form and issue view, but was missing from new PR view making it one place where markdown preview is inconsistent in font size. (cherry picked from commit04afd9d1e2
) * Fix margin on PR form (#11566) (cherry picked from commitf2a0be1683
) * Fix margin for attached top header on code review (#11571) Introduced naively by #11463 The margin was being applied too widely. (cherry picked from commite682a92295
) * Fix styling for PR merge section when no checks (#11609) Makes styling consistent between two cases. Also removed unnecessary double border. * Normalize avatar radius
This commit is contained in:
parent
eb5ea5f67a
commit
5331af1854
5 changed files with 33 additions and 5 deletions
|
@ -194,7 +194,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
|
||||||
req := NewRequest(t, "GET", resp.Header().Get("Location"))
|
req := NewRequest(t, "GET", resp.Header().Get("Location"))
|
||||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||||
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.header > .text.grey").Last().Text())
|
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.merge-section.no-header > .text.grey").Last().Text())
|
||||||
assert.NotEmpty(t, text, "Can't find WIP text")
|
assert.NotEmpty(t, text, "Can't find WIP text")
|
||||||
|
|
||||||
// remove <strong /> from lang
|
// remove <strong /> from lang
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
{{- else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a>
|
{{- else}}red{{end}}">{{svg "octicon-git-merge" 32}}</a>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{template "repo/pulls/status" .}}
|
{{template "repo/pulls/status" .}}
|
||||||
<div class="ui {{if not $.LatestCommitStatus}}top attached header{{else}}attached merge-section segment{{end}}">
|
<div class="ui attached merge-section segment {{if not $.LatestCommitStatus}}no-header{{end}}">
|
||||||
{{if .Issue.PullRequest.HasMerged}}
|
{{if .Issue.PullRequest.HasMerged}}
|
||||||
<div class="item text purple">
|
<div class="item text purple">
|
||||||
{{if .Issue.PullRequest.MergedCommitID}}
|
{{if .Issue.PullRequest.MergedCommitID}}
|
||||||
|
|
|
@ -576,7 +576,12 @@ code,
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar.image {
|
.avatar.image,
|
||||||
|
.avatar.image img,
|
||||||
|
.avatar.image svg,
|
||||||
|
.avatar.images .image,
|
||||||
|
.avatar.images img,
|
||||||
|
.avatar.images svg {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -898,8 +898,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
> .merge-section {
|
> .merge-section {
|
||||||
border-top: 1px solid #d4d4d5;
|
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
|
|
||||||
|
.item + .item {
|
||||||
|
padding-top: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
margin-left: -1rem;
|
||||||
|
margin-right: -1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.no-header {
|
||||||
|
#avatar-arrow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown {
|
.markdown {
|
||||||
|
@ -1234,6 +1246,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pullrequest-form {
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.markdown {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter.dropdown .menu {
|
.filter.dropdown .menu {
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
|
|
||||||
.add-comment-left.add-comment-right .ui.attached.header {
|
.add-comment-left.add-comment-right .ui.attached.header {
|
||||||
border: 1px solid #d4d4d5;
|
border: 1px solid #d4d4d5;
|
||||||
margin-bottom: .5em;
|
|
||||||
margin-top: .5em;
|
margin-top: .5em;
|
||||||
|
|
||||||
|
&:not(.top) {
|
||||||
|
margin-bottom: .5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.focus-lines-new .ui.button.add-code-comment.add-code-comment-right,
|
.focus-lines-new .ui.button.add-code-comment.add-code-comment-right,
|
||||||
|
|
Loading…
Reference in a new issue