Skip to content

Commit 6b71246

Browse files
author
Gusted
authored
Revert increased width on pull pages (#21470)
- Revert a behavior from #21012, which liberally added `fluid padded` to non-split style pull pages, this caused it to take up the whole screen(such in split-style pull pages) on pull pages where the diff was shown. - Resolves #21460 ### Before ![image](https://user-images.githubusercontent.com/25481501/196005545-bb8370c1-330d-4d47-be52-6d0c93e61583.png) ![image](https://user-images.githubusercontent.com/25481501/196005546-0022198e-6ef7-45d1-958c-77a042e5f80b.png) ### After ![image](https://user-images.githubusercontent.com/25481501/196005572-76a38309-9a41-412a-854f-24eae2b9ae4f.png) ![image](https://user-images.githubusercontent.com/25481501/196005551-2495b93d-ad08-4f59-abba-c327dadcc915.png)
1 parent c3b2e44 commit 6b71246

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: 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 class="page-content repository diff">
33
{{template "repo/header" .}}
4-
<div class="ui container fluid padded">
4+
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
55
{{$class := ""}}
66
{{if .Commit.Signature}}
77
{{$class = (printf "%s%s" $class " isSigned")}}

Diff for: 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 class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}">
33
{{template "repo/header" .}}
4-
<div class="ui container fluid padded">
4+
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
55

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

Diff for: templates/repo/pulls/files.tmpl

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

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

0 commit comments

Comments
 (0)