Fix/manga migrate option shown for non library manga on large screens (#637)

This happened only on large screens
This commit is contained in:
schroda
2024-03-04 20:40:47 +01:00
committed by GitHub
parent 224df1300f
commit 0f3549ead9

View File

@@ -60,6 +60,8 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
<Refresh /> <Refresh />
</IconButton> </IconButton>
</Tooltip> </Tooltip>
{manga.inLibrary && (
<>
<Tooltip title={t('global.button.migrate')}> <Tooltip title={t('global.button.migrate')}>
<Link <Link
to={`/migrate/source/${manga.source?.id}/manga/${manga.id}/search?query=${manga.title}`} to={`/migrate/source/${manga.source?.id}/manga/${manga.id}/search?query=${manga.title}`}
@@ -71,7 +73,6 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
</IconButton> </IconButton>
</Link> </Link>
</Tooltip> </Tooltip>
{manga.inLibrary && (
<Tooltip title={t('manga.label.edit_categories')}> <Tooltip title={t('manga.label.edit_categories')}>
<IconButton <IconButton
onClick={() => { onClick={() => {
@@ -81,6 +82,7 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
<Label /> <Label />
</IconButton> </IconButton>
</Tooltip> </Tooltip>
</>
)} )}
</> </>
)} )}