MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

Viewer pagination #533

Closed eyeseast closed 1 month ago

eyeseast commented 2 months ago

This applies to the document and text modes:

allanlasser commented 2 months ago

From #532:

When trying to load a specific page by target (i.e. refreshing a URL ending in #p10), the element is not brought into view. I believe the issue is that the element being targeted is not present when the page loads—it's loaded in after. There's a small flash where the mode is "Document" and the view is empty, before switching to "Text" and displaying the text pages. Either the page should be scrolled into view after streaming finishes (example) or we should change how we're server-rendering the page.