From 2fc2be9b7b8b80905acccbb74e4788a7e8a03f55 Mon Sep 17 00:00:00 2001 From: Nur Rony Date: Mon, 24 Oct 2016 13:58:46 +0600 Subject: [PATCH] removes extra line for empty milestone description --- app/assets/stylesheets/framework/common.scss | 2 +- app/views/projects/milestones/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss index 0d00b6a0d9c..800e2dba018 100644 --- a/app/assets/stylesheets/framework/common.scss +++ b/app/assets/stylesheets/framework/common.scss @@ -373,4 +373,4 @@ table { border-top: 1px solid $border-color; } -.hide-bottom-border { border-bottom: none;} +.hide-bottom-border { border-bottom: none !important; } diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml index c83818e9199..f9ba77e87b5 100644 --- a/app/views/projects/milestones/show.html.haml +++ b/app/views/projects/milestones/show.html.haml @@ -31,7 +31,7 @@ = link_to namespace_project_milestone_path(@project.namespace, @project, @milestone), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-grouped btn-danger" do Delete - .detail-page-description.milestone-detail + .detail-page-description.milestone-detail{ class: ('hide-bottom-border' unless @milestone.description.present? ) } %h2.title = markdown_field(@milestone, :title) %div