Skip to content

Commit

Permalink
Enlarge progress handle and update color on hover
Browse files Browse the repository at this point in the history
This is particularly useful when the progress is zero or 100% and then
displayed at the same position than the start/end date handle.

Signed-off-by: Laurent Fasani <[email protected]>
  • Loading branch information
lfasani committed Jun 21, 2024
1 parent 13e537e commit 21f3138
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/task-item/bar/bar-relation-handle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
cursor: pointer;
opacity: 0;
}

.barRelationHandle:hover {
fill: #a2a2a2;
}
4 changes: 4 additions & 0 deletions src/components/task-item/bar/bar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
visibility: hidden;
}

.barHandle:hover {
fill: #a2a2a2;
}

.barBackground {
user-select: none;
stroke-width: 0;
Expand Down
7 changes: 4 additions & 3 deletions src/helpers/bar-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ export const getProgressPoint = (
taskY: number,
taskHeight: number
) => {
console.log("getProgressPoint");
const point = [
progressX - 5,
progressX - 7,
taskY + taskHeight,
progressX + 5,
progressX + 7,
taskY + taskHeight,
progressX,
taskY + taskHeight - 8.66,
taskY + taskHeight - 11,
];
return point.join(",");
};
Expand Down

0 comments on commit 21f3138

Please sign in to comment.