diff --git a/src/components/MangaCard.tsx b/src/components/MangaCard.tsx index abe4933d..961462d8 100644 --- a/src/components/MangaCard.tsx +++ b/src/components/MangaCard.tsx @@ -392,8 +392,22 @@ export const MangaCard = (props: MangaCardProps) => { component={RouterLink} to={mangaLinkTo} onClick={handleClick} - {...longPressBind()} - sx={{ touchCallout: 'none' }} + {...longPressBind(() => popupState.open(optionButtonRef.current))} + sx={{ + touchCallout: 'none', + '@media (hover: hover) and (pointer: fine)': { + '&:hover .manga-option-button': { + visibility: 'visible', + pointerEvents: 'all', + }, + }, + '&:hover .source-manga-library-state-button': { + display: isMobile ? 'none' : 'inline-flex', + }, + '&:hover .source-manga-library-state-indicator': { + display: 'none', + }, + }} > { + {inLibraryIndicator && ( + + )} {inLibraryIndicator && isInLibrary && ( - + {t('manga.button.in_library')} )} - {showUnreadBadge && unread! > 0 && ( + {showUnreadBadge && (unread ?? 0) > 0 && ( {unread} )} - {showDownloadBadge && downloadCount! > 0 && ( + {showDownloadBadge && (downloadCount ?? 0) > 0 && (