Skip to content

Commit 928d2a2

Browse files
Rotation Drag: Make only the hamburger icon a drag handle
Only the icon should allow the drag, not the entire .rotation-name element
1 parent bc5314a commit 928d2a2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

public/css/timeline.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@
8080
.rotation-name {
8181
font-size: 1.25em;
8282
font-weight: bold;
83-
cursor: grab;
8483

8584
[data-drag-initiator] {
8685
color: @gray-light;
87-
}
88-
&:hover [data-drag-initiator] {
89-
color: @text-color;
86+
87+
&:hover {
88+
cursor: grab;
89+
color: @list-item-title-hover-color;
90+
}
9091
}
9192

9293
// :not(:empty) is only necessary to increase specificity

public/js/schedule.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
Sortable.create(sideBar, {
4242
scroll: true,
4343
direction: 'vertical',
44-
draggable: '.rotation-name'
44+
draggable: '.rotation-name',
45+
handle: '.rotation-name > i[data-drag-initiator]'
4546
});
4647
}
4748

0 commit comments

Comments
 (0)