diff --git a/js/components/ascribe_accordion_list/accordion_list_item.js b/js/components/ascribe_accordion_list/accordion_list_item.js index 57c16435..dfec501e 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item.js +++ b/js/components/ascribe_accordion_list/accordion_list_item.js @@ -19,7 +19,7 @@ let AccordionListItem = React.createClass({
-
+

{this.props.content.title}

{getLangText('by %s', this.props.content.artist_name)}

{this.props.content.date_created.split('-')[0]}

diff --git a/js/components/ascribe_accordion_list/accordion_list_item_table_editions.js b/js/components/ascribe_accordion_list/accordion_list_item_table_editions.js index ed717c57..370c4df9 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item_table_editions.js +++ b/js/components/ascribe_accordion_list/accordion_list_item_table_editions.js @@ -4,7 +4,6 @@ import React from 'react'; import EditionListStore from '../../stores/edition_list_store'; import EditionListActions from '../../actions/edition_list_actions'; -import PieceListActions from '../../actions/piece_list_actions'; import AccordionListItemTable from './accordion_list_item_table'; import AccordionListItemTableToggle from './accordion_list_item_table_toggle'; diff --git a/sass/ascribe_accordion_list.scss b/sass/ascribe_accordion_list.scss index e3b37345..90af4bfb 100644 --- a/sass/ascribe_accordion_list.scss +++ b/sass/ascribe_accordion_list.scss @@ -21,12 +21,19 @@ $ascribe-accordion-list-font: 'Source Sans Pro'; height:100%; // ToDo: Include media queries for thumbnail .thumbnail-wrapper { - margin-left:0; - padding-left:0; + width: 110px; + height: 110px; + padding:0; img { - display:block; - height: $ascribe-accordion-list-item-height; + max-width: 100%; + max-height: 100%; } + &::before { + content: ' '; + display: inline-block; + vertical-align: middle; /* vertical alignment of the inline element */ + height: 100%; + } } h1 { margin-top: .3em; diff --git a/sass/ascribe_uploader.scss b/sass/ascribe_uploader.scss index 892c6235..92205c30 100644 --- a/sass/ascribe_uploader.scss +++ b/sass/ascribe_uploader.scss @@ -29,7 +29,7 @@ margin-top: 1em; - &:before { + &::before { content: ' '; display: inline-block; vertical-align: middle; /* vertical alignment of the inline element */