Fix previous days list order

This commit is contained in:
Andrew-71 2024-03-28 10:56:13 +03:00
parent a53dda25bd
commit 6f874ba9b2
2 changed files with 6 additions and 12 deletions

View file

@ -29,12 +29,7 @@ textarea, input {
margin-bottom: 1em; margin-bottom: 1em;
font-size: 18px; font-size: 18px;
} }
input { height: 2.5em; }
input {
height: 2.5em;
}
footer { margin-top: auto; }
button { button {
background-color: #f85552; background-color: #f85552;
@ -48,16 +43,15 @@ button {
margin: 4px 2px; margin: 4px 2px;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
max-width: 640px; max-width: 640px;
width: 100%; width: 100%;
} }
button:hover { background-color: #e66868; } button:hover { background-color: #e66868; }
footer { margin-top: auto; }
header > h1, header > p { header > h1, header > p {
margin-bottom:0; margin-bottom: 0;
margin-top:0; margin-top: 0;
} }
/* Dark theme */ /* Dark theme */
@ -66,7 +60,6 @@ header > h1, header > p {
color: #f5f0e1; color: #f5f0e1;
background-color: #2c2825; background-color: #2c2825;
} }
textarea, input { textarea, input {
color: #f5f0e1; color: #f5f0e1;
background-color: #383030; background-color: #383030;

View file

@ -82,7 +82,8 @@ func GetDays(w http.ResponseWriter, r *http.Request) {
return return
} }
var daysFormatted []ListEntry var daysFormatted []ListEntry
for _, v := range day { for i, _ := range day {
v := day[len(day)-1-i] // This is suboptimal, but reverse order is better here
dayString := v dayString := v
t, err := time.Parse(time.DateOnly, v) t, err := time.Parse(time.DateOnly, v)
if err == nil { if err == nil {