Skip to content

Commit

Permalink
Wrapper viewer so height can be set without using viewer class.
Browse files Browse the repository at this point in the history
  • Loading branch information
andjsmit committed Jun 26, 2017
1 parent f00d2fb commit bc15f6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/assets/stylesheets/viewer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.viewer {
.viewer-wrapper {
height: 500px;
}
.viewer {
height: 100%;
padding: 10px;
iframe {
// position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_representative_media.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if presenter.representative_id.present? %>
<% if presenter.representative_presenter.image? %>
<%= UniversalViewer.script_tag %>
<div class="uv viewer" data-uri="<%= main_app.polymorphic_path [main_app, :manifest, presenter] %>"></div>
<div class="viewer-wrapper"><div class="uv viewer" data-uri="<%= main_app.polymorphic_path [main_app, :manifest, presenter] %>"></div></div>
<% else %>
<%= media_display presenter.representative_presenter %>
<% end %>
Expand Down

0 comments on commit bc15f6c

Please sign in to comment.