Merge pull request #279 from hiawui/bugfix-month-mode-thick-tick

fix: wrong thick stick in view mode 'Month'
This commit is contained in:
Sagar Sharma 2023-01-04 18:47:09 +05:30 committed by GitHub
commit 94fdb10f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,10 +391,7 @@ export default class Gantt {
tick_class += ' thick';
}
// thick ticks for quarters
if (
this.view_is(VIEW_MODE.MONTH) &&
(date.getMonth() + 1) % 3 === 0
) {
if (this.view_is(VIEW_MODE.MONTH) && date.getMonth() % 3 === 0) {
tick_class += ' thick';
}