0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-28 19:13:27 +01:00

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)
This commit is contained in:
Gusted 2022-10-19 14:48:29 +00:00 committed by GitHub
parent c3b2e44392
commit 6b712465a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{{template "base/head" .}} {{template "base/head" .}}
<div class="page-content repository diff"> <div class="page-content repository diff">
{{template "repo/header" .}} {{template "repo/header" .}}
<div class="ui container fluid padded"> <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
{{$class := ""}} {{$class := ""}}
{{if .Commit.Signature}} {{if .Commit.Signature}}
{{$class = (printf "%s%s" $class " isSigned")}} {{$class = (printf "%s%s" $class " isSigned")}}

View file

@ -1,7 +1,7 @@
{{template "base/head" .}} {{template "base/head" .}}
<div class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}"> <div class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}">
{{template "repo/header" .}} {{template "repo/header" .}}
<div class="ui container fluid padded"> <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
<h2 class="ui header"> <h2 class="ui header">
{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}} {{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}}

View file

@ -5,7 +5,7 @@
<div class="page-content repository view issue pull files diff"> <div class="page-content repository view issue pull files diff">
{{template "repo/header" .}} {{template "repo/header" .}}
<div class="ui container fluid padded"> <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
<div class="navbar"> <div class="navbar">
{{template "repo/issue/navbar" .}} {{template "repo/issue/navbar" .}}
<div class="ui right"> <div class="ui right">