Skip to content

Commit e01fbfc

Browse files
Gnathonicclaude
andcommitted
fix: Prevent scrollbars in reader by hiding document overflow
Sets document.documentElement.style.overflow to 'hidden' when entering the reader and restores it when leaving. This prevents scrollbars from appearing during reader interactions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9dd72bf commit e01fbfc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib/components/Reader/Reader.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,14 @@
337337
});
338338
}
339339
340+
// Prevent scrollbars from appearing when in reader mode
341+
document.documentElement.style.overflow = 'hidden';
342+
340343
return () => {
341344
// Stop activity tracker when component unmounts
342345
activityTracker.stop();
346+
// Restore overflow when leaving reader
347+
document.documentElement.style.overflow = '';
343348
};
344349
});
345350

0 commit comments

Comments
 (0)