Skip to content

Commit 86a5243

Browse files
gumacahinbfintal
andauthored
fix (column block): hide resize handles of deeply nested columns. (#2171)
* Add styles to correct display of resize handles. * Changed implementation to just hide the handlers of any deeply nested column. Co-authored-by: Benjamin Intal <[email protected]>
1 parent 53e09fb commit 86a5243

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/block/column/editor.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
.editor-styles-wrapper .stk-column-wrapper > .block-editor-inner-blocks {
88
width: 100%;
99
}
10+
11+
// Ensure that only directly hovered columns will show their resizer. Nested
12+
// columns should not show their resizer if they are not directly hovered.
13+
.components-resizable-box__container.has-show-handle {
14+
.components-resizable-box__container:not(.has-show-handle) {
15+
.components-resizable-box__handle {
16+
display: none !important;
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)