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:
Alex Kriuchykhin 2023-09-15 12:38:15 +02:00 committed by GitHub
commit 7f4b147a1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View file

@ -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');
},

View file

@ -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 {