Skip to content

Commit

Permalink
Add iiif logo to the link display in share
Browse files Browse the repository at this point in the history
  • Loading branch information
Dananji committed Jul 1, 2024
1 parent a554c15 commit dc2d2d5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
34 changes: 34 additions & 0 deletions app/assets/images/iiif-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/javascript/components/Ramp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@
}
}

.iiif-manifest-logo {
width: 1.5em;
}

@media (max-width: 585px) {
.ramp--tabs-panel {
padding-top: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion app/views/media_objects/_share_resource.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Unless required by applicable law or agreed to in writing, software distributed
<% end %>
</div>
<div class="form-group">
<label for="link-object-manifest">IIIF Manifest</label>
<label for="link-object-manifest">IIIF Manifest</label><img src="<%= asset_path('iiif-logo.svg') %>" alt="IIIF Logo SVG" class="iiif-manifest-logo ml-1">
<input type="text" class="col-md-12 form-control" id="link-object-manifest" value="<%= manifest_media_object_url(@media_object.id) %>"
placeholder="<%= manifest_media_object_url(@media_object.id) %>" onClick="this.select();" readonly="readonly">
</div>
Expand Down

0 comments on commit dc2d2d5

Please sign in to comment.