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