Skip to content

Commit

Permalink
fix(gantt): tasks resizing indicators should point both left and right
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyaVes committed Dec 3, 2024
1 parent b044398 commit ca87a72
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
16 changes: 13 additions & 3 deletions packages/default/scss/gantt/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
position: absolute;
bottom: 0;
// display: none;
cursor: e-resize;
cursor: ew-resize;
visibility: hidden;
}
.k-task-wrap:hover .k-task-draghandle {
Expand Down Expand Up @@ -551,18 +551,28 @@
opacity: .5;
z-index: 2;
visibility: hidden;
cursor: ew-resize;
}

.k-resize-handle::before {
position: absolute;
top: 2px;
bottom: 2px;
}
.k-resize-w { left: 0; }

.k-resize-w {
left: 0;
}

.k-resize-w::before {
left: 2px;
border-left-width: 1px;
}
.k-resize-e { right: 0; }

.k-resize-e {
right: 0;
}

.k-resize-e::before {
right: 2px;
border-left-width: 1px;
Expand Down
18 changes: 15 additions & 3 deletions packages/fluent/scss/gantt/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
}
.k-task-start { inset-inline-start: 0; }
.k-task-end { inset-inline-end: 0; }

.k-task-draghandle {
margin-inline-start: 16px;
width: 0;
Expand All @@ -465,9 +466,10 @@
position: absolute;
bottom: 0;
// display: none;
cursor: e-resize;
cursor: ew-resize;
visibility: hidden;
}

.k-task-wrap:hover .k-task-draghandle {
visibility: visible;
}
Expand Down Expand Up @@ -543,18 +545,28 @@
opacity: .5;
z-index: 2;
visibility: hidden;
cursor: ew-resize;
}

.k-resize-handle::before {
position: absolute;
top: 2px;
bottom: 2px;
}
.k-resize-w { left: 0; }

.k-resize-w {
left: 0;
}

.k-resize-w::before {
left: 2px;
border-left-width: 1px;
}
.k-resize-e { right: 0; }

.k-resize-e {
right: 0;
}

.k-resize-e::before {
right: 2px;
border-left-width: 1px;
Expand Down

0 comments on commit ca87a72

Please sign in to comment.