Add scroll={false} to the last two reader-entry Links
The back-to-manga header Link and the end-of-manga "Back to Home" Link
were missing scroll={false}, so navigating away and returning (or going
home then re-entering via Continue Reading) could lose the resume scroll.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6c750e70ce
commit
61c73c9e2d
@ -373,6 +373,7 @@ export function PageReader({
|
||||
<div className="flex items-center gap-3 px-4 h-12 max-w-4xl mx-auto">
|
||||
<Link
|
||||
href={`/manga/${mangaSlug}`}
|
||||
scroll={false}
|
||||
className="text-foreground/80 hover:text-foreground transition-colors shrink-0"
|
||||
aria-label="Back to manga"
|
||||
>
|
||||
@ -476,6 +477,7 @@ export function PageReader({
|
||||
<p className="text-base font-semibold">{mangaTitle}</p>
|
||||
<Link
|
||||
href="/"
|
||||
scroll={false}
|
||||
className="px-5 py-2 rounded-lg bg-accent text-white text-sm font-semibold transition-colors hover:bg-accent-hover"
|
||||
>
|
||||
Back to Home
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user