From 31bf9fbc093f65559e4a25892948cd7eac4984df Mon Sep 17 00:00:00 2001 From: Felix Gliesche Date: Fri, 26 Apr 2019 12:34:19 +0200 Subject: [PATCH] Fix gaps in resizable gantt chart --- app/views/gantts/show.html.erb | 3 ++- public/stylesheets/application.css | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index a51abdcde..216c10061 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -137,13 +137,14 @@ <%= content_tag(:div, :style => style, :class => "gantt_subjects_container") do %> <% style = "" - style += "width: #{subject_width}px;" + style += "width: #{subject_width + 1}px;" style += "height: #{headers_height}px;" style += 'background: #eee;' %> <%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %> <% style = "" + style += "z-index: 1;" style += "width: #{subject_width}px;" style += "height: #{t_height}px;" style += 'border-left: 1px solid #c0c0c0;' diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 09bcd5b7e..dbafe1422 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1249,6 +1249,10 @@ div.wiki img {vertical-align:middle; max-width:100%;} overflow: hidden; } +.gantt_subjects_column + td { + padding: 0; +} + .gantt_hdr.nwday {background-color:#f1f1f1; color:#999;} .gantt_subjects { font-size: 0.8em; } -- 2.15.1