Fixes scratching image on document and thumbnail for item page.

This commit is contained in:
mateuswetah 2018-05-30 17:14:14 -03:00
parent 3c06fd6155
commit 0980f36f23
3 changed files with 15 additions and 4 deletions

View File

@ -64,12 +64,13 @@
.single-item-collection--document{
iframe, img.attachment-large {
width: 100%;
height: auto;
}
}
.single-item-collection--information{
.card{
.item-card--thumbnail{
height: 250px;
height: auto;
width: 250px;
}
h3{

View File

@ -19,7 +19,7 @@
<?php if ( tainacan_current_view_displays('thumbnail') ): ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('thumbnail', array('class' => 'mr-4')); ?>
<?php the_post_thumbnail('medium', array('class' => 'mr-4')); ?>
</a>
<?php endif; ?>

View File

@ -9,12 +9,22 @@
<div class="frame">
<div class="mat">
<div class="art">
<?php the_post_thumbnail('medium'); ?>
<?php if ( tainacan_current_view_displays('thumbnail') ): ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('medium'); ?>
</a>
<?php endif; ?>
</div>
</div>
</div>
<p class="metadata-title"><?php the_title(); ?></p>
<?php if ( tainacan_current_view_displays('title') ): ?>
<p class="metadata-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</p>
<?php endif; ?>
</div>
</div>