From 86ee41ec033105bec50c1cc4eaf0181a37d71574 Mon Sep 17 00:00:00 2001 From: Sondre Nilsen Date: Thu, 30 Nov 2017 06:08:40 +0100 Subject: Expandable commit bodies (#2980) * Initial working state of expandable commit bodies * Fix all commits having showing button for multiline commits * Refactor checking multiline messages method * Force newlines with
in commit body * Show multiple lines in the list view of repositories * Fixed proper newlines and minor refactor Use
 instead of 

, this is so we can use \n instead of having to manually place
into the HTML. Makes it easier to display commit bodies. * Fix commit list messages jumping around * Fix indentation in view_list.tmpl * Use vertical-align: baseline instead of top * Refactor commit button toggle function * Remove RenderCommitBodyLink function * Add comments * Add newline at the end of _repository.less * Fix long commit bodies not properly wrapping inside


* Don't split on double newlines

* Show the commit body in commit view

* Update stylesheets

* Add/fix comments and run make fmt

* Fix spaces not being tabs
---
 public/less/_repository.less | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'public/less')

diff --git a/public/less/_repository.less b/public/less/_repository.less
index e81c9acdaa..e10ba5924e 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -1606,3 +1606,11 @@
 		}
 	}
 }
+
+.commit-list {
+	vertical-align: baseline;
+}
+
+.commit-body {
+	white-space: pre-wrap;
+}
-- 
cgit v1.2.3