feat: circle marker for current time

This commit is contained in:
Safwan Samsudeen 2025-01-07 17:26:42 +05:30
parent 84a677d26e
commit bab2afee54
2 changed files with 15 additions and 0 deletions

View File

@ -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() {

View File

@ -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);