Skip to content

Commit

Permalink
Enforce gradient style as it will otherwise be overwritten by the bac…
Browse files Browse the repository at this point in the history
…kground color of the type
  • Loading branch information
HDinger committed Sep 3, 2024
1 parent 6df966b commit 0f4d29b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ export class TimelineCellRenderer {
if (_.isNaN(due.valueOf()) && !_.isNaN(start.valueOf())) {
// Set due date to today
due = moment();
bar.style.backgroundImage = 'linear-gradient(90deg, rgba(255,255,255,0) 0%, #F1F1F1 100%)';
bar.setAttribute('style', 'background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, #F1F1F1 100%) !important');
}

// only finish date, fade out bar to the left
if (_.isNaN(start.valueOf()) && !_.isNaN(due.valueOf())) {
start = due.clone();
bar.style.backgroundImage = 'linear-gradient(90deg, #F1F1F1 0%, rgba(255,255,255,0) 80%)';
bar.setAttribute('style', 'background-image: linear-gradient(90deg, #F1F1F1 0%, rgba(255,255,255,0) 80%) !important');
}

this.setElementPositionAndSize(element, renderInfo, start, due);
Expand Down

0 comments on commit 0f4d29b

Please sign in to comment.