Skip to content

Commit

Permalink
Set info text for lightbox option in single line
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Jul 24, 2024
1 parent 3940299 commit f3e8341
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function GalleryEdit( props ) {
label={ __( 'Link To' ) }
>
{ ( { onClose } ) => (
<MenuGroup>
<MenuGroup className="blocks-gallery__link-to-control">
{ linkOptions.map( ( linkItem ) => {
const isOptionSelected =
linkTo === linkItem.value;
Expand Down
8 changes: 8 additions & 0 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,11 @@
justify-content: flex-end;
gap: $grid-unit-15;
}

.blocks-gallery__link-to-control {
.components-menu-item__item {
.components-menu-item__info {
white-space: nowrap;
}
}
}

0 comments on commit f3e8341

Please sign in to comment.