Skip to content

Commit e22a957

Browse files
committed
Ensure sidebar images don't overflow their container
1 parent 838ca76 commit e22a957

5 files changed

+5
-5
lines changed

app/views/histories/10_downing_street.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="govuk-grid-row">
1414
<nav class="govuk-grid-column-one-third">
15-
<%= image_tag "history/buildings/number-10-300.jpg", alt: "The front door of 10 Downing Street", loading: "lazy" %>
15+
<%= image_tag "history/buildings/number-10-300.jpg", alt: "The front door of 10 Downing Street", loading: "lazy", style: "width:100%" %>
1616

1717
<%= render "govuk_publishing_components/components/contents_list", {
1818
contents: [

app/views/histories/11_downing_street.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="govuk-grid-row">
1414
<nav class="govuk-grid-column-one-third">
15-
<%= image_tag "history/buildings/number-11-300.jpg", alt: "The front of 11 Downing Street", loading: "lazy" %>
15+
<%= image_tag "history/buildings/number-11-300.jpg", alt: "The front of 11 Downing Street", loading: "lazy", style: "width:100%" %>
1616

1717
<%= render "govuk_publishing_components/components/contents_list", {
1818
contents: [

app/views/histories/1_horse_guards_road.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="govuk-grid-row">
1414
<nav class="govuk-grid-column-one-third">
15-
<%= image_tag "history/buildings/1-horse-guards-300.jpg", alt: "1 Horse Guards Road", loading: "lazy" %>
15+
<%= image_tag "history/buildings/1-horse-guards-300.jpg", alt: "1 Horse Guards Road", loading: "lazy", style: "width:100%" %>
1616
<%= render "govuk_publishing_components/components/contents_list", {
1717
contents: [
1818
{

app/views/histories/king_charles_street.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="govuk-grid-row">
1414
<nav class="govuk-grid-column-one-third">
15-
<%= image_tag "history/buildings/king-charles-street-300.jpg", alt: "King Charles Street", loading: "lazy" %>
15+
<%= image_tag "history/buildings/king-charles-street-300.jpg", alt: "King Charles Street", loading: "lazy", style: "width:100%" %>
1616

1717
<%= render "govuk_publishing_components/components/contents_list", {
1818
contents: [

app/views/histories/lancaster_house.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="govuk-grid-row">
1414
<nav class="govuk-grid-column-one-third">
15-
<%= image_tag "history/buildings/lancaster-house-300.jpg", alt: "Lancaster House", loading: "lazy" %>
15+
<%= image_tag "history/buildings/lancaster-house-300.jpg", alt: "Lancaster House", loading: "lazy", style: "width:100%" %>
1616

1717
<%= render "govuk_publishing_components/components/contents_list", {
1818
contents: [

0 commit comments

Comments
 (0)