Skip to content

Commit 558005a

Browse files
silverwindGiteaBot
andauthored
Use monospace font in PR command line instructions (#35074)
Before: <img width="878" height="426" alt="Screenshot 2025-07-14 at 17 17 11" src="https://github.com/user-attachments/assets/6e27acb9-bad5-4811-b7b1-5418f0ef12eb" /> After: <img width="878" height="429" alt="Screenshot 2025-07-14 at 17 17 22" src="https://github.com/user-attachments/assets/b0bd2bfa-e4e2-492a-9c08-66607343a459" /> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent 990ae2b commit 558005a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/issue/view_content/pull_merge_instruction.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}}
88
{{$localBranch = print .PullRequest.HeadRepo.OwnerName "-" .PullRequest.HeadBranch}}
99
{{end}}
10-
<div class="ui secondary segment">
10+
<div class="ui secondary segment tw-font-mono">
1111
{{if eq .PullRequest.Flow 0}}
1212
<div>git fetch -u {{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}}<origin-url data-url="{{.PullRequest.HeadRepo.Link}}"></origin-url>{{else}}origin{{end}} {{.PullRequest.HeadBranch}}:{{$localBranch}}</div>
1313
{{else}}
@@ -23,7 +23,7 @@
2323
<div>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_warning"}}</div>
2424
{{end}}
2525
</div>
26-
<div class="ui secondary segment">
26+
<div class="ui secondary segment tw-font-mono">
2727
<div data-pull-merge-style="merge">
2828
<div>git checkout {{.PullRequest.BaseBranch}}</div>
2929
<div>git merge --no-ff {{$localBranch}}</div>

0 commit comments

Comments
 (0)