apply type colors to placeholders

pull/7406/head
ulferts 5 years ago committed by Oliver Günther
parent 662ea06eef
commit 357a9b1bb0
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 3
      frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts
  2. 2
      frontend/src/app/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts

@ -79,13 +79,14 @@ export class TimelineCellRenderer {
const placeholder = document.createElement('div');
placeholder.style.pointerEvents = 'none';
placeholder.style.backgroundColor = '#DDDDDD';
placeholder.style.position = 'absolute';
placeholder.style.height = '1em';
placeholder.style.width = '30px';
placeholder.style.zIndex = '9999';
placeholder.style.left = (days * renderInfo.viewParams.pixelPerDay) + 'px';
this.applyTypeColor(renderInfo, placeholder);
return placeholder;
}

@ -52,6 +52,8 @@ export class TimelineMilestoneCellRenderer extends TimelineCellRenderer {
diamond.style.width = '1em';
placeholder.appendChild(diamond);
this.applyTypeColor(renderInfo, diamond);
return placeholder;
}

Loading…
Cancel
Save