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))