blacklight-gallery 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b6d90e9bfd7c72afede30ce974cc997ba467d8e5ed5d57a37a046cb0bb53a60
4
- data.tar.gz: 2fd75d90e47a616348e5f606a76cd0bb2ff9c4466e812ee791199172bb6ddd76
3
+ metadata.gz: 913cb13022a835407afc868fd4ddd875f40034ec639a26ea9e9fba94f89c1bfd
4
+ data.tar.gz: 4507042c61c539708cc64104c5ec65e650b6dd2e3ccbbe406ea88c17539c5eb8
5
5
  SHA512:
6
- metadata.gz: fc65f8f5e1f75c91b8d97c2dd8b4d545079dca05bf919b01ab8e529bd79d14a59926e19bb2a954af5e6e107defcb5b109968aba31658798ebef82ec0248fe20a
7
- data.tar.gz: 67600db24f2e3203f1acbee341ea38a59403b00c47de94cb6858c4c324270c61d6e0d21716c0c4866f4ac4f91990be4c893b5247042245def934f49f9aadc182
6
+ metadata.gz: d24fd936206d879b1aa8df6e30b6dbb9e9801ac3a994638c93c1a294d55e9f2d359032fbe7cb60744df7749993d37271be30f631105e093f8e75ed06a0908443
7
+ data.tar.gz: 1a58a476b12d45acd79752564bcb7474161884e7d0bf30dc9278fa61dbc6e90c010f826ca807f2e51722fb3eb9c3951baa97830f182b78f4d6898e7cd3ad6299
@@ -1,5 +1,5 @@
1
1
  .view-icon-gallery {
2
- &:before { content: "\e011"; }
2
+ &:before { content: "\e011"; }
3
3
  }
4
4
 
5
5
  .gallery {
@@ -26,8 +26,12 @@
26
26
  -webkit-flex: 1 0 250px;
27
27
  }
28
28
 
29
+ .caption {
30
+ @extend .mt-2;
31
+ }
32
+
29
33
  .index_title {
30
- width: 100%;
34
+ @extend .h6;
31
35
  }
32
36
 
33
37
  .document-counter {
@@ -38,7 +42,7 @@
38
42
  clear: left;
39
43
  }
40
44
 
41
- .document-metadata {
45
+ .document-metadata {
42
46
  dt, dd {
43
47
  float: none;
44
48
  width: auto;
@@ -121,6 +121,7 @@ $gray-dark: darkgray !default;
121
121
  margin-top: 0;
122
122
  padding-top: 0;
123
123
  border-bottom: 0;
124
+ margin-bottom: 1rem;
124
125
 
125
126
  .thumbnail {
126
127
  border: 1px solid #999;
@@ -1,6 +1,6 @@
1
1
  <% # container for all documents in slideshow view -%>
2
2
  <div id="documents" class="row slideshow-documents">
3
- <div class="info">
3
+ <div class="info w-100">
4
4
  <h3><%= t(:'blacklight_gallery.catalog.document_slideshow.header') %></h3>
5
5
  </div>
6
6
 
@@ -2,7 +2,7 @@
2
2
  <div class="thumbnail">
3
3
  <%= link_to '#', data: { :'slide-to' => document_counter, toggle: "modal", target: "#slideshow-modal" } do %>
4
4
  <% if thumbnail_url(document) %>
5
- <%= image_tag thumbnail_url(document) %>
5
+ <%= image_tag thumbnail_url(document), class: 'img-thumbnail' %>
6
6
  <% else %>
7
7
  <%= t('.missing_image', scope: [:blacklight_gallery]) %>
8
8
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <div class="document col-6 col-md-3">
2
2
  <div class="thumbnail">
3
- <%= render_thumbnail_tag(document, {}, :counter => document_counter_with_offset(document_counter)) %>
3
+ <%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, :counter => document_counter_with_offset(document_counter)) %>
4
4
  <div class="caption">
5
5
  <%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
6
6
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="masonry document col-6 col-md-3">
2
2
  <div class="thumbnail">
3
- <%= render_thumbnail_tag(document, {}, :counter => document_counter_with_offset(document_counter)) %>
3
+ <%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, counter: document_counter_with_offset(document_counter)) %>
4
4
  <div class="caption">
5
5
  <%= render_document_partials document, blacklight_config.view_config(:masonry).partials, :document_counter => document_counter %>
6
6
  </div>
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -13,7 +13,7 @@ describe "catalog/_index_gallery.html.erb", :type => :view do
13
13
  end
14
14
 
15
15
  it "should have thumbnail and caption" do
16
- expect(view).to receive(:render_thumbnail_tag).with(document, {}, hash_including(:counter)).and_return('Thumbnail')
16
+ expect(view).to receive(:render_thumbnail_tag).with(document, { class: 'img-thumbnail' }, hash_including(:counter)).and_return('Thumbnail')
17
17
  expect(view).to receive(:render_document_partials).with(document, ['a', 'b'], document_counter: 3).and_return('Z')
18
18
  render
19
19
  expect(rendered).to have_selector '.thumbnail', text: 'Thumbnail'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails