Put the loading status down below

This commit is contained in:
2025-12-04 21:10:20 +00:00
parent d511453418
commit 13df4a7831

View File

@@ -101,7 +101,7 @@ function Feed({ updateCache }) {
<title>QotNews</title>
<meta name="robots" content="index" />
</Helmet>
{loadingStatus && <p>Preloading stories {loadingStatus.current} / {loadingStatus.total}...</p>}
{error &&
<details style={{marginBottom: '1rem'}}>
<summary>Connection error? Click to expand.</summary>
@@ -109,6 +109,7 @@ function Feed({ updateCache }) {
{stories && <p>Loaded feed from cache.</p>}
</details>
}
{stories ?
<div>
{stories.map(x =>
@@ -130,6 +131,8 @@ function Feed({ updateCache }) {
:
<p>Loading...</p>
}
{loadingStatus && <p>Preloading stories {loadingStatus.current} / {loadingStatus.total}...</p>}
</div>
);
}