Skip to content

Commit 6aed2ba

Browse files
committed
Fix disappearing Youtube video
- on this page https://www.gov.uk/government/publications/electronic-travel-authorisation-eta-help-videos/what-is-an-eta-video there is only an embedded video, which does not appear on mobile - this seems to be due to the `.offset-empty-contents-list` class, which floats the main column right if there is no contents list on the left to push it across - however below desktop this styling persists, when all the grid columns should have collapsed - somehow if there is only a Youtube video present in this floated element, it produces an element with zero width, so the video is effectively invisible - adjusting the class to only apply on desktop seems to fix the issue
1 parent 0b19347 commit 6aed2ba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/assets/stylesheets/views/_html-publication.scss

+7-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@
3737
}
3838

3939
.offset-empty-contents-list {
40-
float: right;
40+
// stylelint-disable max-nesting-depth
41+
@include govuk-media-query($from: desktop) {
42+
float: right;
4143

42-
.direction-rtl & {
43-
float: left;
44+
.direction-rtl & {
45+
float: left;
46+
}
4447
}
48+
// stylelint-enable max-nesting-depth
4549
}
4650

4751
.meta-data {

0 commit comments

Comments
 (0)