From 96dee1c3541b6d17f1cd61d78198ecf6abf23865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Wed, 27 Jan 2016 23:52:42 +0100 Subject: [PATCH] Split view fixed --- public/css/gogs.css | 3 +++ public/less/_base.less | 8 ++++++++ templates/repo/diff.tmpl | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) 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" .}}
{{template "repo/header" .}} -
+
{{if .IsDiffCompare }} {{template "repo/commits_table" .}} {{else}}