Skip to content

Commit cccfb9d

Browse files
committed
Enlarge progress handle and update color on hover
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]>
1 parent 13e537e commit cccfb9d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/components/task-item/bar/bar-relation-handle.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88
cursor: pointer;
99
opacity: 0;
1010
}
11+
12+
.barRelationHandle:hover {
13+
fill: #a2a2a2;
14+
}

src/components/task-item/bar/bar.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
visibility: hidden;
1616
}
1717

18+
.barHandle:hover {
19+
fill: #a2a2a2;
20+
}
21+
1822
.barBackground {
1923
user-select: none;
2024
stroke-width: 0;

src/helpers/bar-helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export const getProgressPoint = (
4747
taskHeight: number
4848
) => {
4949
const point = [
50-
progressX - 5,
50+
progressX - 7,
5151
taskY + taskHeight,
52-
progressX + 5,
52+
progressX + 7,
5353
taskY + taskHeight,
5454
progressX,
55-
taskY + taskHeight - 8.66,
55+
taskY + taskHeight - 11,
5656
];
5757
return point.join(",");
5858
};

0 commit comments

Comments
 (0)