fix: some minor ui issues (#2058)

This commit is contained in:
Peng Xiao
2023-04-21 13:56:42 +08:00
committed by GitHub
parent 01115f8957
commit 5a124831b8
2 changed files with 13 additions and 12 deletions

View File

@@ -74,14 +74,16 @@ export const OperationCell: React.FC<OperationCellProps> = ({
>
{favorite ? t('Remove from favorites') : t('Add to Favorites')}
</MenuItem>
<MenuItem
onClick={() => {
onOpenPageInNewTab(id);
}}
icon={<OpenInNewIcon />}
>
{t('Open in new tab')}
</MenuItem>
{!environment.isDesktop && (
<MenuItem
onClick={() => {
onOpenPageInNewTab(id);
}}
icon={<OpenInNewIcon />}
>
{t('Open in new tab')}
</MenuItem>
)}
{!pageMeta.isRootPinboard && (
<MoveTo
metas={metas}