Skip to content

Commit

Permalink
Merge pull request #309 from krymtkts:feature/fix-booklog-calendar
Browse files Browse the repository at this point in the history
Adjust and bugfix for booklog calendar
  • Loading branch information
krymtkts authored Jan 31, 2025
2 parents a1a8d77 + 40e75c2 commit 810a4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 810a4bd

Please sign in to comment.