mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
Windows Firewall fix
This commit is contained in:
1 parent
e435ad3a82
commit
4c2b14c2d8
2 files changed
+43
-1
No files matched your search
@@ -114,6 +114,8 @@ function SearchPage() {
|
||||
} else {
|
||||
setEntries([...entries, ...result]);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
const onEntriesScrollEnd: UIEventHandler = async ({ target }) => {
|
||||
@@ -123,7 +125,11 @@ function SearchPage() {
|
||||
if (scrollHeight - 20 > scrollTop + target.getBoundingClientRect().height)
|
||||
return;
|
||||
|
||||
await runSearch(false);
|
||||
const results = await runSearch(false);
|
||||
if (!results?.length) {
|
||||
target.style.paddingBottom = "50vh";
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
target.scrollTop = scrollTop + 100;
|
||||
|
||||
Reference in new issue
Block a user