From f5bfc8684f83ec18a47ee87c2b8f4d6c4a2928a6 Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Sat, 27 Jan 2018 22:01:49 +1100 Subject: [PATCH] improve markdown
 tag

---
 assets/static/style.css         |  4 +++-
 src/server/views/status_html.rs | 10 +++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/assets/static/style.css b/assets/static/style.css
index 0e66d45..535b6d0 100644
--- a/assets/static/style.css
+++ b/assets/static/style.css
@@ -19,7 +19,9 @@ body {
 
 pre {
     font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
-    white-space: pre-wrap; 
+    overflow: auto;
+    word-wrap: normal;
+    white-space: pre;
     background: #dedede;
     color: #555;
     padding: .5em .7em;
diff --git a/src/server/views/status_html.rs b/src/server/views/status_html.rs
index 22b17cd..3f7f3c8 100644
--- a/src/server/views/status_html.rs
+++ b/src/server/views/status_html.rs
@@ -61,17 +61,17 @@ pub fn status_html(analysis_outcome: AnalyzeDependenciesOutcome, repo_path: Repo
                         code (format!("{}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref()))
                     }
                     
-                    h2 {
-                        "Crate "
-                        code (analysis_outcome.name.as_ref())
-                    }
-
                     img src=(format!("/{}/status.svg", self_path));
 
                     pre {
                         (format!("[![dependency status]({}/status.svg)]({})", status_base_url, status_base_url))
                     }
 
+                    h2 {
+                        "Crate "
+                        code (analysis_outcome.name.as_ref())
+                    }
+
                     @if !analysis_outcome.deps.main.is_empty() {
                         h3 "Dependencies"
                         (dependency_table(analysis_outcome.deps.main))