Skip to content

Commit cd3452c

Browse files
committed
feat: style the layers drag handle and add its tooltip string
1 parent 35e806b commit cd3452c

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎src/nls/root/strings.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ define({
829829
"LIVE_PREVIEW_LAYERS_HIDE_TEXT_NODES": "Hide Text Nodes",
830830
"LIVE_PREVIEW_LAYERS_MOVE_UP": "Move Up",
831831
"LIVE_PREVIEW_LAYERS_MOVE_DOWN": "Move Down",
832+
"LIVE_PREVIEW_LAYERS_DRAG_TO_MOVE": "Drag to move",
832833
"LIVE_PREVIEW_LAYERS_REVEAL_IN_CODE": "Reveal in Code",
833834
"LIVE_PREVIEW_LAYERS_ADD_ATTRIBUTE": "Add Attribute",
834835
"LIVE_PREVIEW_LAYERS_REMOVE_ATTRIBUTE": "Remove Attribute",

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,27 @@
546546
}
547547
}
548548

549+
.layers-node-grip {
550+
display: flex;
551+
align-items: center;
552+
justify-content: center;
553+
width: 14px;
554+
height: 18px;
555+
flex: none;
556+
color: @project-panel-text-2;
557+
cursor: grab;
558+
559+
svg {
560+
width: 12px;
561+
height: 12px;
562+
display: block;
563+
}
564+
565+
&:hover {
566+
color: @project-panel-text-1;
567+
}
568+
}
569+
549570
.layers-node-text {
550571
color: @project-panel-text-2;
551572
font-style: italic;
@@ -846,6 +867,10 @@ body.layers-resizing {
846867
body.layers-dnd {
847868
cursor: grabbing;
848869
user-select: none;
870+
871+
.layers-node-grip {
872+
cursor: grabbing;
873+
}
849874
}
850875

851876
body.layers-dnd-invalid {

0 commit comments

Comments
 (0)