summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-28 10:11:45 -0500
committerUnknwon <u@gogs.io>2016-01-28 10:11:45 -0500
commit566163ab8257ba2b828985c2cc00f705341ba73f (patch)
treeb631f5154c51ff989ed9147cbb38b0ecbcdebff5
parente2dde6eb0a3a6ccc472346f6e4f72e3f62db494e (diff)
parent96dee1c3541b6d17f1cd61d78198ecf6abf23865 (diff)
downloadgitea-566163ab8257ba2b828985c2cc00f705341ba73f.tar.gz
gitea-566163ab8257ba2b828985c2cc00f705341ba73f.zip
Merge pull request #2502 from bkcsoft/fix/split-view-diff
Split view fixed
-rwxr-xr-xpublic/css/gogs.css3
-rw-r--r--public/less/_base.less8
-rw-r--r--templates/repo/diff.tmpl2
3 files changed, 12 insertions, 1 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 02032e83a7..0014c5fae0 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -809,6 +809,9 @@ pre.wrap {
.ui.right {
float: right;
}
+.ui.container.fluid.padded {
+ padding: 0 10px 0 10px;
+}
.ui .text.red {
color: #d95c5c !important;
}
diff --git a/public/less/_base.less b/public/less/_base.less
index a63072fdcb..0322944442 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -101,6 +101,14 @@ pre {
float: right;
}
+ &.container {
+ &.fluid {
+ &.padded {
+ padding: 0 10px 0 10px;
+ }
+ }
+ }
+
.text {
&.red {
color: #d95c5c !important;
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 6568968414..192d6fdd22 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -1,7 +1,7 @@
{{template "base/head" .}}
<div class="repository diff">
{{template "repo/header" .}}
- <div class="ui container">
+ <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
{{if .IsDiffCompare }}
{{template "repo/commits_table" .}}
{{else}}