Skip to content

Commit

Permalink
Simplify and unify a few modal dialogs. (#37857)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Jan 11, 2022
1 parent 7a00aa3 commit 8debd02
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
16 changes: 8 additions & 8 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ figure.wp-block-gallery {
}

.wp-block-update-gallery-modal {
max-width: 400px;
.wp-block-update-gallery-modal-buttons {
display: flex;
justify-content: flex-end;

.components-button {
margin-left: $grid-unit-15;
}
@include break-small() {
max-width: $break-mobile;
}
}

.wp-block-update-gallery-modal-buttons {
display: flex;
justify-content: flex-end;
gap: $grid-unit-15;
}
9 changes: 4 additions & 5 deletions packages/block-library/src/page-list/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@

// Modal that shows conversion option.
.wp-block-page-list-modal {
max-width: 400px;
@include break-small() {
max-width: $break-mobile;
}
}

.wp-block-page-list-modal-buttons {
display: flex;
justify-content: flex-end;

.components-button {
margin-left: $grid-unit-15;
}
gap: $grid-unit-15;
}

// Simulate open on click behaviour in the editor by opening on focus instead.
Expand Down
4 changes: 3 additions & 1 deletion packages/editor/src/components/post-locked-modal/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.editor-post-locked-modal {
max-width: 400px;
@include break-small() {
max-width: $break-mobile;
}
}

.editor-post-locked-modal__buttons {
Expand Down

0 comments on commit 8debd02

Please sign in to comment.