mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user