Skip to content

Commit

Permalink
Merge pull request #27661 from guardian/ei/centre-ad-slots-on-galleries
Browse files Browse the repository at this point in the history
Centre gallery ad slots
  • Loading branch information
emma-imber authored Dec 10, 2024
2 parents adfc49f + b1d5bdb commit c9c2bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion applications/app/views/fragments/gallerySlot.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Seq("gallery-inline", "dark") ++ (if(isMobile) Some("mobile") else None),
Map(),
optId = if(isMobile) Some(s"$slotName--mobile") else None,
optClassNames = if(isMobile) Some("mobile-only") else Some("hide-until-tablet")
optClassNames = if(isMobile) Some("mobile-only") else Some("hide-until-tablet"),
useFlexContainer = true
){ }
}
2 changes: 1 addition & 1 deletion static/src/stylesheets/module/_adslot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
.ad-slot--gallery-inline,
.ad-slot--liveblog-inline {
width: $mpu-original-width;
margin: $gs-baseline auto;
margin: $gs-baseline 0;
min-width: $mpu-original-width;
min-height: $mpu-original-height + $mpu-ad-label-height;
text-align: center;
Expand Down

0 comments on commit c9c2bca

Please sign in to comment.