Skip to content

Commit 7828478

Browse files
committed
Fix Safari quirks
1 parent a57ad3b commit 7828478

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

routers/repo/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func Diff(ctx *context.Context) {
339339
setImageCompareContext(ctx, parentCommit, commit)
340340
headTarget := path.Join(userName, repoName)
341341
setPathsCompareContext(ctx, parentCommit, commit, headTarget)
342-
ctx.Data["Title"] = commit.Summary() + " · " + base.ShortSha(commitID)
342+
ctx.Data["Title"] = commit.Summary() + " · " + base.ShortSha(commitID)
343343
ctx.Data["Commit"] = commit
344344
verification := models.ParseCommitWithSignature(commit)
345345
ctx.Data["Verification"] = verification

templates/org/team/teams.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{end}}
3838
</div>
3939
<div class="ui bottom attached header">
40-
<p class="team-meta">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
40+
<p class="team-meta">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}}&nbsp;·&nbsp;{{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
4141
</div>
4242
</div>
4343
{{end}}

templates/repo/branch/list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{svg "octicon-shield-lock"}}
2020
{{end}}
2121
<a href="{{$.RepoLink}}/src/branch/{{$.DefaultBranch | EscapePound}}">{{$.DefaultBranch}}</a>
22-
<p class="info df ac my-2">{{svg "octicon-git-commit" 16 "mr-2"}}<a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
22+
<p class="info df ac my-2">{{svg "octicon-git-commit" 16 "mr-2"}}<a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a>&nbsp;·&nbsp;<span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span>&nbsp;·&nbsp;{{$.i18n.Tr "org.repo_updated"}}&nbsp;{{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
2323
{{end}}
2424
{{end}}
2525
</td>
@@ -50,13 +50,13 @@
5050
<td class="six wide">
5151
{{if .IsDeleted}}
5252
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
53-
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
53+
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}}&nbsp;{{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
5454
{{else}}
5555
{{if .IsProtected}}
5656
{{svg "octicon-shield-lock"}}
5757
{{end}}
5858
<a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a>
59-
<p class="info df ac my-2">{{svg "octicon-git-commit" 16 "mr-2"}}<a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
59+
<p class="info df ac my-2">{{svg "octicon-git-commit" 16 "mr-2"}}<a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a>&nbsp;·&nbsp;<span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span>&nbsp;·&nbsp;{{$.i18n.Tr "org.repo_updated"}}&nbsp;{{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
6060
{{end}}
6161
</td>
6262
<td class="three wide ui">

web_src/less/_explore.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
font-size: 12px;
5252
color: #808080;
5353
display: flex;
54-
white-space: pre;
54+
5555
.commit-message {
5656
max-width: 72em;
5757
overflow: hidden;

web_src/less/_repository.less

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,13 @@
13161316
}
13171317

13181318
@media (max-width: 480px) {
1319-
.ui.input + * {
1320-
margin-top: .5em;
1321-
flex-grow: 1;
1319+
form {
1320+
flex-direction: column;
1321+
align-items: stretch !important;
1322+
1323+
> * + * {
1324+
margin-top: .5em;
1325+
}
13221326
}
13231327
}
13241328
}

0 commit comments

Comments
 (0)