diff --git a/src/index.js b/src/index.js index c3257f6..e00b781 100644 --- a/src/index.js +++ b/src/index.js @@ -680,6 +680,14 @@ export default class Gantt { classes: 'current-highlight', append_to: this.$container, }); + this.$current_highlight = this.create_el({ + top: this.config.header_height - 6, + left: left - 2.5, + width: 6, + height: 6, + classes: 'current-ball-highlight', + append_to: this.$header, + }); } make_grid_highlights() { diff --git a/src/styles/gantt.css b/src/styles/gantt.css index c3c6295..be58aff 100644 --- a/src/styles/gantt.css +++ b/src/styles/gantt.css @@ -173,6 +173,13 @@ z-index: 999; } + & .current-ball-highlight { + position: absolute; + background: var(--g-today-highlight); + z-index: 1001; + border-radius: 50%; + } + & .current-date-highlight { background: var(--g-today-highlight); color: var(--g-text-light);