Skip to content

Commit

Permalink
resize images
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Dec 4, 2023
1 parent 3ce523b commit 4f36147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<table class="row content image">
<tr>
<th class="small-12 first columns">
<%= image_tag image_url(:main_image, resize_to_fit: [653, 436]) %>
<%= image_tag(image_url(:main_image, resize_to_fit: [653, 436]), width: "653", height: "436") %>
</th>
<th class="expander"></th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
.social-links {
padding-top: 20px !important;
}

}
</style>

Expand All @@ -117,7 +116,7 @@
<tr>
<td align="center" style="padding: 48px">
<% if has_image?(:main_image) %>
<%= image_tag image_url(:main_image, resize_to_fit: [653, 436]), alt: "Intro Image" %>
<%= image_tag(image_url(:main_image, resize_to_fit: [653, 436]), alt: "Intro Image", width: "653", height: "436", style: "width: 100%; height: auto;") %>
<% end %>
</td>
</tr>
Expand Down Expand Up @@ -214,7 +213,7 @@
<td class="mobile-responsive footer-box__image" style="width: 33.33%; vertical-align: top; padding: 08px;">
<!-- Image -->
<% if has_image?("footer_box_image_#{num}") %>
<%= image_tag(image_url("footer_box_image_#{num}", resize_to_fill: [198, 132])) %>
<%= image_tag(image_url("footer_box_image_#{num}", resize_to_fill: [198, 132]), width: 198, height: 132) %>
<% end %>
<!-- Date -->
<table width="100%">
Expand Down

0 comments on commit 4f36147

Please sign in to comment.