[questions][ui] fix no more questions overlap

pull/470/head
wlren 3 years ago
parent 8fdea6b5bc
commit 25992a4a02

@ -548,7 +548,9 @@ export default function QuestionsBrowsePage() {
); );
}), }),
)} )}
<PaginationLoadMoreButton query={questionsInfiniteQuery} /> {questionCount !== 0 && (
<PaginationLoadMoreButton query={questionsInfiniteQuery} />
)}
{questionCount === 0 && ( {questionCount === 0 && (
<div className="flex w-full items-center justify-center gap-2 rounded-md border border-slate-300 bg-slate-200 p-4 text-slate-600"> <div className="flex w-full items-center justify-center gap-2 rounded-md border border-slate-300 bg-slate-200 p-4 text-slate-600">
<NoSymbolIcon className="h-6 w-6" /> <NoSymbolIcon className="h-6 w-6" />

Loading…
Cancel
Save