Skip to content

Commit

Permalink
Merge pull request #6833 from ampproject/fix/editor-amp-settings-panel
Browse files Browse the repository at this point in the history
Remove deprecated controls from editor sidebar and fix AMP Lightbox and AMP Carousel in Gallery block
  • Loading branch information
westonruter authored Jan 29, 2022
2 parents 14ddbf0 + 83f143c commit a0705cd
Show file tree
Hide file tree
Showing 11 changed files with 343 additions and 504 deletions.
3 changes: 2 additions & 1 deletion assets/css/src/amp-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ amp-carousel .amp-wp-gallery-caption {
padding: 1rem;
}

.wp-block-gallery[data-amp-carousel="true"] {
.wp-block-gallery[data-amp-carousel="true"],
.wp-block-gallery[data-amp-carousel="true"].has-nested-images {
display: block;
flex-wrap: unset;
}
Expand Down
8 changes: 0 additions & 8 deletions assets/src/block-editor/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ export const TEXT_BLOCKS = [
'core/subhead',
];

export const MEDIA_BLOCKS = [
'core/image',
'core/video',
];

export const DEFAULT_WIDTH = 608; // Max-width in the editor.
export const DEFAULT_HEIGHT = 400;

export const POST_PREVIEW_CLASS = 'editor-post-preview';
Loading

0 comments on commit a0705cd

Please sign in to comment.