From b101916876ce06d06633af2a3ac6a34bd6cb2762 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 4 Apr 2018 15:02:01 +0000 Subject: fixed tab headers in width --- views/neighbors.haml | 2 +- views/prediction.haml | 5 ++--- views/style.scss | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/views/neighbors.haml b/views/neighbors.haml index dd22e71..8af59b6 100644 --- a/views/neighbors.haml +++ b/views/neighbors.haml @@ -2,7 +2,7 @@ %h3 Neighbors: / tabs div #tabs - %ul.nav.nav-tabs.nav-justified{:id=>"neighborTabs", :role=>"tablist"} + %ul.nav.nav-tabs.nav-justified{:id=>"neighborTabs", :role=>"tablist", :style=>"width:100%;overflow-x:auto;"} - @models.each_with_index do |model,i| / get predictionFeature type - m = Model::Lazar.find model.model_id.to_s diff --git a/views/prediction.haml b/views/prediction.haml index f694c4d..4181c22 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -16,7 +16,7 @@ %table.table.table-bordered{:id=>"overview"} %tbody %tr - %td{:id=>"compound", :style=>"vertical-align:top;"} + %td{:id=>"compound", :style=>"vertical-align:top;text-align:center;"} %a.btn.btn-link{:href => "#details0", data: { toggle: "modal", remote: to("/prediction/#{CGI.escape(@compound.id.to_s)}/details"), :id=>"link01"}} = @compound.svg %p= @compound.smiles @@ -97,8 +97,7 @@ - if !prediction[:warnings].blank? %b Warnings: - prediction[:warnings].uniq.each do |warning| - %br - %p=warning.sub(/,/, ",
") + %p=warning #.sub(/,/, ",
") /%p=warning.sub(/substances/, "substances
").sub(/prediction\:/, "prediction\:
") - else %br diff --git a/views/style.scss b/views/style.scss index ac070a1..a23bb5d 100644 --- a/views/style.scss +++ b/views/style.scss @@ -41,7 +41,7 @@ h4.head-back, h5.head-back{ } li a { - height: 7em; + //height: 7em; } } img { -- cgit v1.2.3