summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-04-04 15:02:01 +0000
committergebele <gebele@in-silico.ch>2018-04-04 15:02:01 +0000
commitb101916876ce06d06633af2a3ac6a34bd6cb2762 (patch)
tree10f242c3448150d76654d8f7ae4d2ee3fd22955f
parent8c001b11e33f44dbf63e9cabf44e11af7ba4bc6b (diff)
fixed tab headers in width
-rw-r--r--views/neighbors.haml2
-rw-r--r--views/prediction.haml5
-rw-r--r--views/style.scss2
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(/,/, ",<br>")
+ %p=warning #.sub(/,/, ",<br>")
/%p=warning.sub(/substances/, "substances<br>").sub(/prediction\:/, "prediction\:<br>")
- 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 {