From 8d2b554304636b356dae2dbf778ca1f68983cd0d Mon Sep 17 00:00:00 2001
From: Marius BALTEANU <marius.balteanu@zitec.com>
Date: Mon, 23 Jul 2018 21:44:22 +0000
Subject: [PATCH 2/2] adds some padding to issue section content

---
 app/views/issues/_relations.html.erb | 24 +++++++++++++-----------
 app/views/issues/show.html.erb       |  8 +++++---
 public/stylesheets/application.css   |  8 ++++++++
 3 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb
index 6c59ee7..145b603 100644
--- a/app/views/issues/_relations.html.erb
+++ b/app/views/issues/_relations.html.erb
@@ -7,16 +7,18 @@
 <p><strong class="toggle-section icon icon-expanded"><%=l(:label_related_issues)%></strong></p>
 
 <% if @relations.present? %>
-<%= form_tag({}, :class => 'collapsible', :data => {:cm_url => issues_context_menu_path}) do %>
-  <%= render_issue_relations(@issue, @relations) %>
-<% end %>
-<% end %>
+<div class="relations-content collapsible">
+  <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
+    <%= render_issue_relations(@issue, @relations) %>
+  <% end %>
+  <% end %>
 
-<%= form_for @relation, {
-                 :as => :relation, :remote => true,
-                 :url => issue_relations_path(@issue),
-                 :method => :post,
-                 :html => {:id => 'new-relation-form', :style => 'display: none;'}
-               } do |f| %>
-<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
+  <%= form_for @relation, {
+                   :as => :relation, :remote => true,
+                   :url => issue_relations_path(@issue),
+                   :method => :post,
+                   :html => {:id => 'new-relation-form', :style => 'display: none;'}
+                 } do |f| %>
+  <%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
+</div>
 <% end %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index 8015c30..1982ea1 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -106,9 +106,11 @@ end %>
   <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
 </div>
 <p><strong class="toggle-section icon icon-expanded"><%=l(:label_subtask_plural)%></strong></p>
-<%= form_tag({}, :class => 'collapsible', :data => {:cm_url => issues_context_menu_path}) do %>
-<%= render_descendants_tree(@issue) unless @issue.leaf? %>
-<% end %>
+<div class="subtasks-content collapsible">
+  <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
+  <%= render_descendants_tree(@issue) unless @issue.leaf? %>
+  <% end %>
+</div>
 </div>
 <% end %>
 
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index bb83622..45b1d75 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -472,6 +472,14 @@ div.issue .attributes .attribute {padding-left:180px; clear:left; min-height: 1.
 div.issue .attributes .attribute .label {width: 170px; margin-left:-180px; float:left;  overflow:hidden; text-overflow: ellipsis;}
 div.issue .attribute .value {overflow:auto; text-overflow: ellipsis;}
 div.issue.overdue .due-date .value { color: #c22; }
+div.issue .attributes .splitcontent,
+div.issue .description div.wiki,
+div.issue .attachments table,
+div.issue .attachments div.thumbnails,
+div.issue .subtasks-content,
+div.issue .relations-content {
+  padding-left: 15px;
+}
 
 #issue_tree table.issues, #relations table.issues { border: 0; }
 #issue_tree td.checkbox, #relations td.checkbox {display:none;}
-- 
2.1.4

