mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 10:04:04 +00:00
bug fix
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
- 提交热力图的标签显示没有完全对齐
|
||||
- 多个可点击元素点击后会出现蓝色的边框
|
||||
- 移动端模式下点击热力图可能会导致样式错乱
|
||||
- 未展示的 post 依旧在底部列表中被计算
|
||||
|
||||
## TODO
|
||||
|
||||
|
@@ -29,8 +29,8 @@ function switchYear(year) {
|
||||
let startDate;
|
||||
let endDate;
|
||||
if (year != now.getFullYear().toString()) {
|
||||
const date = new Date(year);
|
||||
startDate = new Date(date.getTime() - date.getDay() * 24 * 60 * 60 * 1000);
|
||||
const date = new Date(`${year}-01-01 00:00:00`);
|
||||
startDate = new Date(date.getFullYear(), 0, 1);
|
||||
endDate = new Date(date.getFullYear(), 11, 31);
|
||||
} else {
|
||||
endDate = now;
|
||||
|
Reference in New Issue
Block a user