Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust and bugfix for booklog calendar #309

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ pre code {
}
}
td.dow {
line-height: 0.8em;
width: 2em;
}
td.log {
Expand Down
6 changes: 3 additions & 3 deletions src/Booklog.fs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ module Misc =
if d.DayOfWeek = DayOfWeek.Sunday then
d
else
let toMonday = (int d.DayOfWeek + 6) % 7 |> float
d.AddDays(-toMonday)
let toSunday = d.DayOfWeek |> float
d.AddDays(-toSunday)

let endDate =
let d = DateTime(year, 12, 31)
Expand Down Expand Up @@ -110,7 +110,7 @@ module Misc =
|> List.map (fun (dow, dates) ->
let dowCell =
match dow with
| DayOfWeek.Sunday
| DayOfWeek.Monday
| DayOfWeek.Wednesday
| DayOfWeek.Friday ->
Html.td [
Expand Down