Misc fixes

This commit is contained in:
2025-12-01 21:07:01 +00:00
parent 3acaf230c4
commit 6a329e3ba9
5 changed files with 18 additions and 8 deletions

View File

@@ -99,8 +99,6 @@ function App() {
<br />
<span className='slogan'>Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode.</span>
</p>
<Route path='/(|search)' component={Search} />
<Route path='/(|search)' component={Submit} />
{fullScreenAvailable &&
<Route path='/(|search)' render={() => !isFullScreen ?
<button className='fullscreen' onClick={() => goFullScreen()}>Enter Fullscreen</button>
@@ -108,6 +106,8 @@ function App() {
<button className='fullscreen' onClick={() => exitFullScreen()}>Exit Fullscreen</button>
} />
}
<Route path='/(|search)' component={Search} />
<Route path='/(|search)' component={Submit} />
</div>
<Route path='/' exact render={(props) => <Feed {...props} updateCache={updateCache} />} />

View File

@@ -100,6 +100,7 @@ function Feed({ updateCache }) {
<details style={{marginBottom: '1rem'}}>
<summary>Connection error? Click to expand.</summary>
<p>{error}</p>
{stories && <p>Loaded feed from cache.</p>}
</details>
}
{stories ?

View File

@@ -45,7 +45,7 @@ function Submit() {
ref={inputRef}
/>
</form>
{progress ? progress : ''}
{progress && <p>{progress}</p>}
</span>
);
}