We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a3f27 commit 95ac9fdCopy full SHA for 95ac9fd
1 file changed
src/components/Thumbnail.vue
@@ -56,6 +56,8 @@ export default {
56
.done(function(response) {
57
let data = response;
58
if (_.isArray(data.thumbnails) && data.thumbnails.length > 0) {
59
+ // This sorting works to put 'small' before 'large', should also work for 'medium',
60
+ // but falls back to at least using a thumbnail if one exists for the frame in the archive.
61
let thumbnails = _.orderBy(data.thumbnails, ['size'], ['desc']);
62
that.thumbnailSmallUrl = thumbnails[0].url || '';
63
that.thumbnailLargeUrl = thumbnails[1].url || '';
0 commit comments