Skip to content

Commit

Permalink
removed current folio styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajolipa committed May 10, 2024
1 parent cdc99b6 commit 8ae87cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editioncrafter/src/component/ImageGridView.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ class ImageGridView extends React.Component {
const thumbs = folios.map((folio, index) => (
// eslint-disable-next-line react/no-array-index-key
<li key={`thumb-${index}`} className="thumbnail">
<figure className={(folio.id === currentID) ? 'current' : ''}><a id={folio.id} onClick={this.onClickThumb.bind(this, folio.id)}><img src={folio.image_thumbnail_url} alt={folio.name} style={{maxWidth: "130px", maxHeight: "130px"}} onError={({ currentTarget }) => {currentTarget.onerror = null; if (folio.image_zoom_url && currentTarget.src !== `${folio.image_zoom_url.slice(0, -9)}full/full/0/default.jpg`) {currentTarget.src=`${folio.image_zoom_url.slice(0, -9)}full/full/0/default.jpg`;} }} /></a></figure>
<figcaption className={(folio.id === currentID) ? 'thumbnail-caption current' : 'thumbnail-caption'}>
{(folio.id === currentID) ? (`*${folio.name}`) : folio.name}
<figure><a id={folio.id} onClick={this.onClickThumb.bind(this, folio.id)}><img src={folio.image_thumbnail_url} alt={folio.name} style={{maxWidth: "130px", maxHeight: "130px"}} onError={({ currentTarget }) => {currentTarget.onerror = null; if (folio.image_zoom_url && currentTarget.src !== `${folio.image_zoom_url.slice(0, -9)}full/full/0/default.jpg`) {currentTarget.src=`${folio.image_zoom_url.slice(0, -9)}full/full/0/default.jpg`;} }} /></a></figure>
<figcaption className='thumbnail-caption'>
{folio.name}
</figcaption>

</li>
Expand Down

0 comments on commit 8ae87cd

Please sign in to comment.