From 53327455dd161199a1bfdf9affc4ebfc149e0d15 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 | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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..bd4f94fe4 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1249,9 +1249,13 @@ 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; } +.gantt_subjects { font-size: 0.8em; position: relative; z-index: 1; } .gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; } .gantt_subjects div.issue-subject:hover { background-color:#ffffdd; } -- 2.15.1