Skip to content

Commit

Permalink
Remove deprecated controls from editor sidebar and fix AMP Lightbox a…
Browse files Browse the repository at this point in the history
…nd AMP Carousel in Gallery block (#6833)
  • Loading branch information
westonruter committed Jan 29, 2022
1 parent 338aa4c commit 328f1a5
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 328f1a5

Please sign in to comment.