Fix: Reworked Bookmark System & Added Double Page (WIP)

This commit is contained in:
Youwes09
2026-03-31 19:46:11 -05:00
parent a69d5eacc5
commit 4decce9a7f
4 changed files with 463 additions and 252 deletions
+2 -3
View File
@@ -213,7 +213,7 @@ export interface Settings {
storageLimitGb: number | null;
markReadOnNext: boolean;
readerDebounceMs: number;
bookmarksEnabled: boolean;
autoBookmark: boolean;
theme: Theme;
libraryBranches: boolean;
renderLimit: number;
@@ -297,7 +297,7 @@ export const DEFAULT_SETTINGS: Settings = {
storageLimitGb: null,
markReadOnNext: true,
readerDebounceMs: 120,
bookmarksEnabled: true,
autoBookmark: true,
theme: "dark",
libraryBranches: true,
renderLimit: 48,
@@ -569,7 +569,6 @@ class Store {
* per chapter is kept — adding a second one replaces the first.
*/
addBookmark(entry: Omit<BookmarkEntry, "savedAt">, label?: string) {
if (!(this.settings.bookmarksEnabled ?? true)) return;
const bookmark: BookmarkEntry = { ...entry, savedAt: Date.now(), label };
this.bookmarks = [
bookmark,