diff --git a/app/assets/stylesheets/admin/preview.sass b/app/assets/stylesheets/admin/preview.sass index 8452c3f1dbc14bfd268210c56006baa3c85acada..494cf4bde41cf6b51a556452aad621aba6903099 100644 --- a/app/assets/stylesheets/admin/preview.sass +++ b/app/assets/stylesheets/admin/preview.sass @@ -1,3 +1,4 @@ .preview img + height: auto max-width: 100% diff --git a/app/views/admin/communication/website/posts/show.html.erb b/app/views/admin/communication/website/posts/show.html.erb index 1ede128bf10db31c68f68639f7d7011fb1bda654..3a1393e09ebe3ab64aa3cd9d0b0116c5e92943b1 100644 --- a/app/views/admin/communication/website/posts/show.html.erb +++ b/app/views/admin/communication/website/posts/show.html.erb @@ -37,7 +37,7 @@ <%= number_to_human_size embed.metadata['filesize'] %> </p> <%= link_to t('download'), - rails_blob_url(embed, disposition: 'attachment', filename: embed.filename), + rails_blob_url(embed.blob, disposition: 'attachment', filename: embed.filename), class: 'btn btn-xs btn-light' %> </div> </div>