Skip to content

Commit

Permalink
set the modal size to large
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed May 22, 2024
1 parent da4fafd commit 1e81d13
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion admin/class-create-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function create_block_theme_enqueue() {
);
wp_enqueue_script(
'create-block-theme-slot-fill',
'create-block-theme-styles'
);

// Enable localization in the plugin sidebar.
Expand Down
2 changes: 1 addition & 1 deletion src/editor-sidebar/json-editor-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ThemeJsonEditorModal = ( { onRequestClose } ) => {

return (
<Modal
isFullScreen
size="large"
title={ sprintf(
// translators: %s: theme name.
__( 'theme.json for %s', 'create-block-theme' ),
Expand Down
2 changes: 1 addition & 1 deletion src/editor-sidebar/metadata-editor-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const ThemeMetadataEditorModal = ( { onRequestClose } ) => {

return (
<Modal
isFullScreen
size="large"
title={ sprintf(
// translators: %s: theme name.
__( 'Metadata for %s', 'create-block-theme' ),
Expand Down
5 changes: 0 additions & 5 deletions src/plugin-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ $modal-footer-height: 70px;

.#{$plugin-prefix} {
&__metadata-editor-modal {
width: 65vw !important;
padding-bottom: $modal-footer-height;

&__footer {
Expand All @@ -23,8 +22,4 @@ $modal-footer-height: 70px;
object-fit: cover;
}
}

&__theme-json-modal {
width: 65vw !important;
}
}

0 comments on commit 1e81d13

Please sign in to comment.