Skip to content

Commit

Permalink
Ensure that single attachment media embed width is respected. #2148
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Feb 23, 2024
1 parent 78f85b2 commit 98fea76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/page-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
@include clearfix;
}

.block-layout-alignment-block-left .item.resource,
.block-layout-alignment-block-right .item.resource {
.block-layout-alignment-block-left .item.resource:not(:only-child),
.block-layout-alignment-block-right .item.resource:not(:only-child) {
margin: 0 0 1rem 0;

.media-render a {
Expand Down Expand Up @@ -119,7 +119,7 @@
}

.media-embed.attachment-count-1 {
width: 100%;
width: 100% !important;
}

.media-embed.layout-horizontal.attachment-count-2 {
Expand Down

0 comments on commit 98fea76

Please sign in to comment.