mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #6204 from sboursen-scinote/sb_SCI-8126-fix
Fix issues with the you've reached the end of the list banner [SCI-8126]
This commit is contained in:
commit
7f4b147a1f
|
@ -473,7 +473,10 @@ var ProjectsIndex = (function() {
|
|||
}
|
||||
|
||||
if (data.filtered) {
|
||||
InfiniteScroll.removeScroll(cardsWrapper);
|
||||
$(projectsWrapper).find('.project-list-end-placeholder').remove();
|
||||
if (window.innerWidth > document.body.clientWidth) {
|
||||
$($($(cardsWrapper).data('config').endOfListTemplate).html()).appendTo($(cardsWrapper));
|
||||
}
|
||||
} else {
|
||||
InfiniteScroll.init(cardsWrapper, {
|
||||
url: cardsUrl,
|
||||
|
@ -490,7 +493,7 @@ var ProjectsIndex = (function() {
|
|||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
error: function() {
|
||||
viewContainer.html('Error loading project list');
|
||||
},
|
||||
|
|
|
@ -22,9 +22,11 @@
|
|||
}
|
||||
|
||||
&.no-results {
|
||||
grid-template-rows: 1fr;
|
||||
height: calc(100vh - var(--content-header-size) - var(--navbar-height));
|
||||
|
||||
.no-results-container {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 4;
|
||||
}
|
||||
|
||||
.no-results-img {
|
||||
|
@ -84,9 +86,13 @@
|
|||
display: none !important;
|
||||
}
|
||||
|
||||
&.no-results {
|
||||
grid-template-rows: 2em 1fr;
|
||||
height: calc(100vh - var(--content-header-size) - var(--navbar-height));
|
||||
}
|
||||
|
||||
.no-results-container {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 12;
|
||||
}
|
||||
|
||||
.card {
|
||||
|
|
Loading…
Reference in a new issue