Name the iOS HTML preview as the view that does not keep its offset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
paseo-bot[bot]
2026-11-19 06:40:40 +00:00
co-authored by Claude Opus 5.5
parent dd1c0424f4
commit b495d33414
@@ -70,7 +70,8 @@ type TextFilePanelProps = PluginFilePanelProps & {
* What the Markdown, HTML and Source panels share: a toolbar over the file's Source view and, when
* the panel passes one, its Preview. Both views show the one read of the file and, while editing, the one editor buffer, so switching
* between them neither re-reads nor loses edits. Each view stays mounted once shown, so switching
* back also returns to where it was scrolled. Edits files up to 1 MiB on web; shows larger files
* back also returns to where it was scrolled. The exception is the HTML Preview on iOS: iOS
* replaces the WebView of a hidden view, so the page loads again from the top. Edits files up to 1 MiB on web; shows larger files
* and every file on native read-only, and refuses files above the display budget before reading.
*/
export function TextFilePanel(props: TextFilePanelProps) {