Skip to content

Commit

Permalink
update formatting of date
Browse files Browse the repository at this point in the history
order date output
  • Loading branch information
mosesmc52 committed Feb 26, 2022
1 parent 0486308 commit eb8718c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get(self, request):
}
quarters = (
app_models.data.objects.values("quarter", "year")
.annotate(existing=Value(True, output_field=BooleanField()))
.annotate(existing=Value(True, output_field=BooleanField())).order_by('year')
.distinct()
)
max_year = quarters.aggregate(Max("year"))["year__max"]
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/Map/DefaultD3.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@
margin: 2.5px;
}

.mr-10 {
margin-right: 10px;
}

.selection-alert {
border-radius: 0.25rem;
border: solid 2px #818189;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Map/DefaultD3.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const DefaultD3 = ({
const variant = isCurrentSelection ? '' : 'outline-'
return (
<Button
className={ 'rounded-0'}
className={ 'rounded-0 mr-10'}
disabled={isCurrentSelection || !existing}
variant={variant + 'primary'}
onClick={() => updateChosenPeriod(quarterOption)}
Expand Down

0 comments on commit eb8718c

Please sign in to comment.