Adjusts empty links for download document.

This commit is contained in:
mateuswetah 2020-04-06 17:15:29 -03:00
parent 6ba21d2085
commit 7cadf68ea3
2 changed files with 4 additions and 4 deletions

View File

@ -374,7 +374,7 @@
content: ""; content: "";
} }
&.single-item-collection{ &.single-item-collection{
min-height: 23.5vh; min-height: 10vh;
position: relative; position: relative;
.single-item-collection--document { .single-item-collection--document {
&:hover { &:hover {

View File

@ -26,7 +26,7 @@
<header class="mb-4 tainacan-content"> <header class="mb-4 tainacan-content">
<div class="header-meta text-muted mb-5"> <div class="header-meta text-muted mb-5">
<span class="time"><?php tainacan_meta_date_author(); ?></span> <span class="time"><?php tainacan_meta_date_author(); ?></span>
<?php if(function_exists('tainacan_the_item_edit_link')) { <?php if( function_exists('tainacan_the_item_edit_link') ) {
echo '<span class="tainacan-edit-item-collection">'; echo '<span class="tainacan-edit-item-collection">';
tainacan_the_item_edit_link(null, ' - '); tainacan_the_item_edit_link(null, ' - ');
echo '</span>'; echo '</span>';
@ -38,9 +38,9 @@
<section class="tainacan-content single-item-collection margin-two-column"> <section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--document"> <div class="single-item-collection--document">
<?php tainacan_the_document(); ?> <?php tainacan_the_document(); ?>
<?php if(function_exists('tainacan_the_item_document_download_link')) { <?php if( function_exists('tainacan_the_item_document_download_link') && tainacan_the_item_document_download_link() != '' ) {
echo '<span class="tainacan-item-document-download">'; echo '<span class="tainacan-item-document-download">';
tainacan_the_item_document_download_link(); echo tainacan_the_item_document_download_link();
echo '</span>'; echo '</span>';
} ?> } ?>
</div> </div>