Skip to content

Commit

Permalink
Improve link conrol preview when show button text label is enabled. (W…
Browse files Browse the repository at this point in the history
…ordPress#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]>
  • Loading branch information
5 people authored and patil-vipul committed Jun 17, 2024
1 parent b8fb7d1 commit b962d5d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ $block-editor-link-control-number-of-actions: 1;
}

.block-editor-link-control__search-item-top {
gap: $grid-unit-10;
gap: $grid-unit-05;
flex-wrap: wrap;

.components-button.has-icon {
min-width: inherit;
width: min-content;
width: auto;
padding: $grid-unit-05;
}
}

.is-preview .block-editor-link-control__search-item-header {
min-width: 100%;
margin-right: 0;
}
}
}

Expand Down

0 comments on commit b962d5d

Please sign in to comment.