feat(settings): add option to change default thumbnail click behavior

Introduce a new display preference to control what happens when clicking
a book cover thumbnail. Users can now choose to open the book details
page instead of launching the reader directly.

Closes #240
This commit is contained in:
neon
2026-06-05 04:19:26 +00:00
parent ae8001d7ea
commit cc7ab54a3b
15 changed files with 363 additions and 14 deletions
@@ -31,6 +31,9 @@ export type SeriesCardCoverMode = (typeof SERIES_CARD_COVER_MODES)[number];
export const CARD_INFO_MODES = ["hover-overlay", "below-cover", "off"] as const;
export type CardInfoMode = (typeof CARD_INFO_MODES)[number];
export const BOOK_THUMBNAIL_CLICK_ACTION = ["reader", "details"] as const;
export type BookThumbnailClickAction = (typeof BOOK_THUMBNAIL_CLICK_ACTION)[number];
export interface DisplayPreferences {
portraitCoverSize: number;
squareCoverSize: number;
@@ -52,4 +55,5 @@ export interface DisplayPreferences {
gridCardPrimaryLabel: GridCardLabelField;
gridCardSecondaryLabel: GridCardLabelField;
cardInfoMode: CardInfoMode;
thumbnailClickAction: BookThumbnailClickAction;
}