Skip to content

Commit

Permalink
UI adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Oct 7, 2022
1 parent a91ef8f commit d50d63d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion caimira/apps/calculator/static/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
content: attr(data-tooltip);
padding: 10px 18px;
min-width: 50px;
max-width: 220px;
max-width: 200px;
width: max-content;
width: -moz-max-content;
border-radius: 6px;
Expand Down
4 changes: 4 additions & 0 deletions caimira/apps/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ footer img {
display: inline!important;
}

#event_data_tooltip:before{
max-width: 350px!important;
}

}

@media (max-width: 40em) {
Expand Down
4 changes: 2 additions & 2 deletions caimira/apps/templates/base/calculator.form.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@

<!-- Event Options -->
<b>Event data:</b>
<div data-tooltip="The total no. of occupants in the room.
<div id="event_data_tooltip" data-tooltip="The total no. of occupants in the room.
Deterministic exposure: add no. occupants that are infected.
Probabilistic exposure: event at a given time & location (e.g. meeting or conference), considering the incidence rate in that area.">
<span class="tooltip_text">?</span>
Expand Down Expand Up @@ -337,7 +337,7 @@
</div>
<div class="form-group row">
<div class="col-sm-4"><label class="col-form-label">New confirmed cases (weekly):</label></div>
<div class="col-sm-6 pl-0 align-self-center"><input type="number" step="any" id="geographic_cases" class="non_zero form-control" name="geographic_cases" placeholder="Cases (#7-day rolling average)" min="0"></div>
<div class="col-sm-6 pl-0 align-self-center"><input type="number" step="any" id="geographic_cases" class="non_zero form-control" name="geographic_cases" placeholder="Cases (#7-day rolling avg)" min="0"></div>
</div>
<div class="form-group row">
<div class="col-sm-4"><label class="col-form-label">Confidence level:</label></div>
Expand Down

0 comments on commit d50d63d

Please sign in to comment.