89940d36f8
A better fix has been proposed upstream at https://github.com/rails/rails/pull/56283 but this should be fine in the meantime. ref: https://app.fizzy.do/5986089/cards/3188
9 lines
315 B
Plaintext
9 lines
315 B
Plaintext
<figure class="attachment attachment--preview">
|
|
<%= image_tag remote_image.url, skip_pipeline: true, width: remote_image.width, height: remote_image.height %>
|
|
<% if caption = remote_image.try(:caption) %>
|
|
<figcaption class="attachment__caption">
|
|
<%= caption %>
|
|
</figcaption>
|
|
<% end %>
|
|
</figure>
|