Skip to content

Commit 6f0037c

Browse files
aferciat-hamanojasmussenrichtabor
authored
Improve link conrol preview when show button text label is enabled. (#61726)
* Improve link conrol preview when show button text label is enabled. * Reduce gap. * Remove right alignment. Co-authored-by: afercia <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: richtabor <[email protected]>
1 parent f9df151 commit 6f0037c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/block-editor/src/components/link-control/style.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ $block-editor-link-control-number-of-actions: 1;
3636
}
3737

3838
.block-editor-link-control__search-item-top {
39-
gap: $grid-unit-10;
39+
gap: $grid-unit-05;
40+
flex-wrap: wrap;
4041

4142
.components-button.has-icon {
42-
min-width: inherit;
43-
width: min-content;
43+
width: auto;
44+
padding: $grid-unit-05;
4445
}
4546
}
47+
48+
.is-preview .block-editor-link-control__search-item-header {
49+
min-width: 100%;
50+
margin-right: 0;
51+
}
4652
}
4753
}
4854

0 commit comments

Comments
 (0)