From e844b21e43bcd4979e6f2238d5391e6c8a888cb2 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Mon, 29 Jan 2018 21:13:04 +0100
Subject: [PATCH] made tooltips more readable

---
 static/style.css      | 5 +++++
 templates/macros.html | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/static/style.css b/static/style.css
index f2d8898..becd506 100644
--- a/static/style.css
+++ b/static/style.css
@@ -139,3 +139,8 @@ th.rotate > div {
     rotate(270deg)
     translate(-50px,0px);
 }
+
+.tooltip-inner {
+	max-width: 500px;
+
+}
diff --git a/templates/macros.html b/templates/macros.html
index cc0232d..ef27010 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -298,7 +298,7 @@ $('#embedcodebtn').popover(
 {% macro moderator_editor (path,value,reload=false) %}
 	{% if ismod() %}
 	<span class="moderator_editor" data-path="{{path|join('.')}}" data-reload="{{ reload|int }}" >
-		<a class="moderator_editor_sign btn btn-default" title="{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in  path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new }}{% endfor %}" data-toggle="tooltip" tabindex="0" style="padding: 3px; margin-right: 5px;">
+		<a class="moderator_editor_sign btn btn-default" title="{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in  path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape }}{% endfor %}" data-toggle="tooltip" tabindex="0" style="padding: 3px; margin-right: 5px;">
 			<span class="glyphicon glyphicon-pencil"></span>
 		</a>
 		<span class="moderator_editor_value">{{ value|fixnl|safe }}</span>
@@ -310,7 +310,7 @@ $('#embedcodebtn').popover(
 
 {% macro moderator_checkbox (path,value) %}
 	{% if ismod() %}
-	<input title="{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in  path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new }}{% endfor %}" data-toggle="tooltip" type="checkbox" data-path="{{path|join('.')}}" {% if value %} checked {% endif %} onchange="moderator.editor.changeboxclick(this)"/>
+	<input title="{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in  path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape }}{% endfor %}" data-toggle="tooltip" type="checkbox" data-path="{{path|join('.')}}" {% if value %} checked {% endif %} onchange="moderator.editor.changeboxclick(this)"/>
 	{% endif %}
 {% endmacro %}
 
-- 
GitLab