Skip to content

Commit d9c6cb7

Browse files
authored
Always go full width in PR view (#22844)
This is an alternative solution to #22824 and would also close #22781 This makes the PR diff view always full width. It makes sense to make use of that screen real estate. If you want a more narrow view you can always resize your browser. It also avoids cluttering the UI with another button + the database with another column for the setting. This is also how github and gitlab do it.
1 parent 52dd383 commit d9c6cb7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/repo/commit_page.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content repository diff">
33
{{template "repo/header" .}}
4-
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
4+
<div class="ui container fluid padded">
55
{{$class := ""}}
66
{{if .Commit.Signature}}
77
{{$class = (printf "%s%s" $class " isSigned")}}

templates/repo/diff/compare.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}">
33
{{template "repo/header" .}}
4-
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
4+
<div class="ui container fluid padded">
55

66
<h2 class="ui header">
77
{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}}

templates/repo/pulls/files.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull files diff">
77
{{template "repo/header" .}}
8-
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
8+
<div class="ui container fluid padded">
99
<div class="navbar">
1010
{{template "repo/issue/navbar" .}}
1111
<div class="ui right">

0 commit comments

Comments
 (0)