Skip to content

Commit c9c2bca

Browse files
authored
Merge pull request #27661 from guardian/ei/centre-ad-slots-on-galleries
Centre gallery ad slots
2 parents adfc49f + b1d5bdb commit c9c2bca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

applications/app/views/fragments/gallerySlot.scala.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Seq("gallery-inline", "dark") ++ (if(isMobile) Some("mobile") else None),
1313
Map(),
1414
optId = if(isMobile) Some(s"$slotName--mobile") else None,
15-
optClassNames = if(isMobile) Some("mobile-only") else Some("hide-until-tablet")
15+
optClassNames = if(isMobile) Some("mobile-only") else Some("hide-until-tablet"),
16+
useFlexContainer = true
1617
){ }
1718
}

static/src/stylesheets/module/_adslot.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
.ad-slot--gallery-inline,
193193
.ad-slot--liveblog-inline {
194194
width: $mpu-original-width;
195-
margin: $gs-baseline auto;
195+
margin: $gs-baseline 0;
196196
min-width: $mpu-original-width;
197197
min-height: $mpu-original-height + $mpu-ad-label-height;
198198
text-align: center;

0 commit comments

Comments
 (0)