Skip to content

Commit fdabc52

Browse files
committed
feat(layers): show select parent in every row's hover tools
Select parent is one of the most used row actions, but outside script-added rows it was reachable only through the "..." menu. Show its up-arrow first in every element row's hover tools, before insert, duplicate, delete and the menu button. The root and text rows still have no tools, so every row that shows it has a parent. Reserve 130px instead of 106px for the tools, so a hovered row's label stops short of five buttons. Script-added rows keep select parent as their only tool.
1 parent 54ff696 commit fdabc52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@layers-row-height: 28px;
3535
@layers-label-min-width: 72px;
3636
@layers-row-intrinsic-width: 115px;
37-
@layers-tools-width: 106px;
37+
@layers-tools-width: 130px;
3838
@layers-script-tools-width: 34px;
3939
@layers-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
4040
@layers-prop-name: #9cdcfe;
@@ -982,7 +982,7 @@
982982
padding-right: 0;
983983
}
984984

985-
.layers-node:not(.layers-script-node) .layers-action-select-parent,
985+
// A script-added element has no source to edit, so select parent is its only tool.
986986
.layers-node.layers-script-node .layers-node-action:not(.layers-action-select-parent) {
987987
display: none;
988988
}

0 commit comments

Comments
 (0)