diff --git a/app/assets/stylesheets/views/_html-publication.scss b/app/assets/stylesheets/views/_html-publication.scss index e7390bcbb..9d852a37c 100644 --- a/app/assets/stylesheets/views/_html-publication.scss +++ b/app/assets/stylesheets/views/_html-publication.scss @@ -22,6 +22,14 @@ } .contents-list-container { + @include govuk-media-query($from: desktop) { + position: sticky; + top: govuk-spacing(2); + max-height: 100vh; + overflow-y: auto; + margin-bottom: govuk-spacing(4); + } + .direction-rtl & { float: right; } diff --git a/app/views/content_items/html_publication.html.erb b/app/views/content_items/html_publication.html.erb index 496e0f2a9..622d08698 100644 --- a/app/views/content_items/html_publication.html.erb +++ b/app/views/content_items/html_publication.html.erb @@ -49,40 +49,32 @@ type: @content_item.schema_name } %> -