Hide manga title copy button when unsupported

This commit is contained in:
schroda
2026-07-14 12:13:20 +02:00
parent 172fa4ad14
commit 4023a8117e
2 changed files with 8 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (**Download**) Respect manga chapter filters on bulk manga download in the library
- (**History**) Show only the last read chapter per manga
- (**Updates**) Show only the first unread chapter per manga per day
- (**Manga**) Hide details page title copy button in unsupported environments (secure context (https, localhost) required)
### Fixed

View File

@@ -261,11 +261,13 @@ export const MangaDetails = ({
{manga.title}
</Typography>
</SearchLink>
<CustomTooltip title={t`Copy`}>
<IconButton onClick={copyTitle} color="inherit">
<ContentCopyIcon fontSize="small" />
</IconButton>
</CustomTooltip>
{!!navigator.clipboard && (
<CustomTooltip title={t`Copy`}>
<IconButton onClick={copyTitle} color="inherit">
<ContentCopyIcon fontSize="small" />
</IconButton>
</CustomTooltip>
)}
</Stack>
{manga.author && (
<Metadata