]> source.dussan.org Git - redmine.git/commitdiff
Merged r16556 (#25745).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 May 2017 07:36:01 +0000 (07:36 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 May 2017 07:36:01 +0000 (07:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@16565 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/gantts/show.html.erb
public/stylesheets/responsive.css

index dc89b2090df3042d0a69a801fcfe0b08d5b0e2e8..384e965de54fcb92d5b93d9ff8eea574fc1cb7b1 100644 (file)
 
 <table style="width:100%; border:0; border-collapse: collapse;">
 <tr>
-<td style="width:<%= subject_width %>px; padding:0px;">
+<td style="width:<%= subject_width %>px; padding:0px;" class="gantt_subjects_column">
   <%
     style  = ""
     style += "position:relative;"
     style += "height: #{t_height + 24}px;"
     style += "width: #{subject_width + 1}px;"
   %>
-  <%= content_tag(:div, :style => style) do %>
+  <%= content_tag(:div, :style => style, :class => "gantt_subjects_container") do %>
     <%
       style  = ""
       style += "right:-2px;"
index 0cde3eea08654865014ce3e08b207ee03602f546..28934f792af5b4a2d3b3d55c71acff03beb422e1 100644 (file)
     padding-top: 1em;
   }
 
+  /* Gantt charts */
+  /*
+   * [1] override inline styles with important
+   * [2] keep border between subjects and gantt area
+   * [3] remove whitespace between subjects and gantt area
+   * [4] maintain width due to [3]
+   */
+  .gantt_subjects_column {
+    width: 60% !important; /* [1] */
+  }
+
+  .gantt_subjects_container {
+    width: 100% !important;
+    overflow: hidden;
+  }
+
+  .gantt_subjects_column .gantt_hdr {
+    width: 100% !important;
+    border-right: 1px solid #c0c0c0; /* [2] */
+    right: 0 !important; /* [2] */
+  }
+
+  #gantt_area {
+    left: -2px; /* [3] */
+    margin-right: -2px; /* [4] */
+  }
+
   /*----------------------------------------*\
     G) FORMS
   \*----------------------------------------*/