Skip to content

Commit f4ce10c

Browse files
authored
Minor UI fixes (#14926)
* disable fork button when not signed in * fix commit body styling on PR page * fixup! fix commit body styling on PR page
1 parent f061277 commit f4ce10c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</div>
8484
</form>
8585
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
86-
<div class="ui labeled button" tabindex="0">
86+
<div class="ui labeled button {{if not $.IsSigned}} disabled{{end}}" tabindex="0">
8787
<a class="ui compact small basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
8888
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}}
8989
</a>

web_src/less/_repository.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2768,12 +2768,17 @@ tbody.commit-list {
27682768

27692769
.commit-body {
27702770
white-space: pre-wrap;
2771+
line-height: initial;
27712772
}
27722773

27732774
.repository:not(.diff) {
2774-
.commit-body {
2775+
.commit-body { // commit history list
27752776
margin: 0;
27762777
}
2778+
2779+
.timeline-item .commit-body { // PR-comment
2780+
margin-left: 40px;
2781+
}
27772782
}
27782783

27792784
.git-notes.top {

0 commit comments

Comments
 (0)