Skip to content

Commit

Permalink
client - mobile - Number of options for focus hours is reduced.
Browse files Browse the repository at this point in the history
On small screens, the number of options for focus hours (1, 2, 3, 6, 12, 24)
is reduced. On mobile, focus options are displayed in a vertical manner and
were stealing valuable space from the BG/treatment graph itself.
  • Loading branch information
stephencmorton committed Feb 9, 2020
1 parent 5d73c34 commit d463548
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ a, a:visited, a:link {
.focus-range li {
display: block;
}
.focus-hours-extra {
display:none !important;
}

}

@media (max-height: 700px) {
Expand Down Expand Up @@ -752,6 +756,10 @@ a, a:visited, a:link {
.focus-range li {
display: block;
}
.focus-hours-extra {
display:none !important;
}


.statusPills {
display: inline;
Expand Down
6 changes: 3 additions & 3 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@

<ul class="focus-range">
<li data-hours="1" class="translate">Hours:</li>
<li data-hours="2">2</li>
<li data-hours="3">3</li>
<li data-hours="4">4</li>
<li data-hours="2" class="focus-hours-extra">2</li>
<li data-hours="3" class="focus-hours-extra">3</li>
<li data-hours="4" class="focus-hours-extra">4</li>
<li data-hours="6">6</li>
<li data-hours="12">12</li>
<li data-hours="24">24</li>
Expand Down

0 comments on commit d463548

Please sign in to comment.