diff --git a/app/assets/stylesheets/hyku.scss b/app/assets/stylesheets/hyku.scss index db1302219..2dea308ee 100644 --- a/app/assets/stylesheets/hyku.scss +++ b/app/assets/stylesheets/hyku.scss @@ -428,7 +428,7 @@ div#collapse-citations { } @media (min-width: 576px) { - .citations-button .download-pdf-button { + .citations-button .file_download { max-width: 300px; } } @@ -552,7 +552,7 @@ span.constraint-value p, .facet-values p { } } -#download-pdf-button { +#file_download { margin: 10px 0 10px 0; } diff --git a/app/views/hyrax/base/_download_pdf.html.erb b/app/views/hyrax/base/_download_pdf.html.erb index 59c0cd85e..cf6ed4acc 100644 --- a/app/views/hyrax/base/_download_pdf.html.erb +++ b/app/views/hyrax/base/_download_pdf.html.erb @@ -2,10 +2,10 @@
<% if @presenter.representative_presenter.present? && presenter.file_set_presenters.any?(&:pdf?) %> <%= button_tag type: 'button', - id: "download-pdf-button", + id: "file_download", data: { label: @presenter.representative_presenter.id, path: hyrax.download_path(presenter.representative_presenter) }, - class: "btn btn-success btn-block download-pdf-button center-block", + class: "btn btn-success btn-block file_download center-block", onclick: "window.open(this.dataset.path, '_blank');" do %> Download PDF <% end %>