Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
fix: on limits map, always show the results for Brazilian limits (eve…
Browse files Browse the repository at this point in the history
…n if 0)
  • Loading branch information
severo committed Apr 19, 2019
1 parent d7abff6 commit 6c9bd47
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 44 deletions.
60 changes: 31 additions & 29 deletions docs/css/main.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title>Quem bebe agrotóxicos?</title>
<!-- TODO: bundle at build -->
<script defer src="https://bundle.run/fuzzball@1.2.0"></script>
<script defer src="lib/main.pt.js?v=1555596980"></script>
<link rel="stylesheet" href="css/main.css?v=1555596980" />
<script defer src="lib/main.pt.js?v=1555655185"></script>
<link rel="stylesheet" href="css/main.css?v=1555655185" />
</head>
<body>
<section id="page-title" class="hero is-small is-primary cocktail">
Expand Down Expand Up @@ -114,7 +114,7 @@ <h2 class="subtitle is-4">
>GitHub</a
>
</strong>
- v1555596980
- v1555655185
</p>
<p>
<small>
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/main.pt.js

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions src/_javascript/details/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,15 @@ function makeLimits(parent, dispatcher, mun, data) {
const supBrSubstances = mun.properties.tests.filter(
sub => sub.map2Category === MAP2.CATEGORY.SUP_BR
);
if (supBrSubstances.length > 0) {
makeTubesLimits(
parent,
supBrSubstances,
'<span class="is-size-4">' +
supBrSubstances.length +
'</span> {{details.limits.detectionsbr}} ' +
mun.properties.name,
'cat-' + MAP2.CATEGORY.SUP_BR
);
}
makeTubesLimits(
parent,
supBrSubstances,
'<span class="is-size-4">' +
supBrSubstances.length +
'</span> {{details.limits.detectionsbr}} ' +
mun.properties.name,
'cat-' + MAP2.CATEGORY.SUP_BR
);
const supEuSubstances = mun.properties.tests.filter(
sub => sub.map2Category === MAP2.CATEGORY.SUP_EU
);
Expand Down
1 change: 1 addition & 0 deletions src/_sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ html {
}
}
.tubes {
margin-bottom: 2em;
a text {
fill: #3273dc;
}
Expand Down

0 comments on commit 6c9bd47

Please sign in to comment.