diff options
author | gempir <daniel.pasch.s@gmail.com> | 2023-02-16 20:25:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 13:25:00 -0600 |
commit | d9c6cb71e16145ac8f3d9f94f59d3b15ad873631 (patch) | |
tree | cbe9adfd7a290c799b2938c49b8dd848b86191cb /templates | |
parent | 52dd383b6d333cd9534f97ad4ac260f6fc9bec23 (diff) | |
download | gitea-d9c6cb71e16145ac8f3d9f94f59d3b15ad873631.tar.gz gitea-d9c6cb71e16145ac8f3d9f94f59d3b15ad873631.zip |
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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/commit_page.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/diff/compare.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/pulls/files.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index a0cd12674a..0ecbf29161 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} <div role="main" aria-label="{{.Title}}" class="page-content repository diff"> {{template "repo/header" .}} - <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}"> + <div class="ui container fluid padded"> {{$class := ""}} {{if .Commit.Signature}} {{$class = (printf "%s%s" $class " isSigned")}} diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 97ef7c2da8..16749bacbf 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} <div role="main" aria-label="{{.Title}}" class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}"> {{template "repo/header" .}} - <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}"> + <div class="ui container fluid padded"> <h2 class="ui header"> {{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}} diff --git a/templates/repo/pulls/files.tmpl b/templates/repo/pulls/files.tmpl index e5e91bf5c3..c3e32325d8 100644 --- a/templates/repo/pulls/files.tmpl +++ b/templates/repo/pulls/files.tmpl @@ -5,7 +5,7 @@ <div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull files diff"> {{template "repo/header" .}} - <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}"> + <div class="ui container fluid padded"> <div class="navbar"> {{template "repo/issue/navbar" .}} <div class="ui right"> |